diff --git a/infl-components-src/components/infinite_scroll.js b/infl-components-src/components/infinite_scroll.js index 97d02f41..feccc2d4 100644 --- a/infl-components-src/components/infinite_scroll.js +++ b/infl-components-src/components/infinite_scroll.js @@ -56,7 +56,7 @@ class InfiniteScroll extends React.Component { _addScrollEventListener() { if (!this.addWindowSrollEvent || !this.props.hasMore) return; - $(window).scroll(this._onWindowScroll); + $(window).on('scroll', this._onWindowScroll); this.addWindowSrollEvent = false; } diff --git a/infl-components-src/multi-select/multi_select.js b/infl-components-src/multi-select/multi_select.js index 9cedbd53..bd285fad 100644 --- a/infl-components-src/multi-select/multi_select.js +++ b/infl-components-src/multi-select/multi_select.js @@ -118,7 +118,7 @@ const MultiSelect = React.createClass({ _addHideEvent: function() { const that = this; - $(window).click(function() { + $(window).on('click', function() { that._hideOptions(); }); }, diff --git a/infl-components-src/tabs/responsive_tabs_mixin.js b/infl-components-src/tabs/responsive_tabs_mixin.js index 2a200477..abcc2ece 100644 --- a/infl-components-src/tabs/responsive_tabs_mixin.js +++ b/infl-components-src/tabs/responsive_tabs_mixin.js @@ -12,7 +12,7 @@ const ResponsiveTabsMixin = { }, _addWindowResizeEvent: function() { - $(window).resize(this._adjustTabsForScreenSize); + $(window).on('resize', this._adjustTabsForScreenSize); }, _adjustTabsForScreenSize: function() { diff --git a/infl-components-src/tooltip/index.js b/infl-components-src/tooltip/index.js index 0597029d..4af5d4a2 100644 --- a/infl-components-src/tooltip/index.js +++ b/infl-components-src/tooltip/index.js @@ -91,7 +91,7 @@ export default class Tooltip extends Component { componentDidMount() { - $('body').click(this._closeTooltip); + $('body').on('click', this._closeTooltip); } componentWillUnmount() { diff --git a/package.json b/package.json index cfc87162..044f8f73 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ "gulp-postcss": "^6.0.0", "gulp-replace": "^0.5.4", "gulp-watch": "^4.3.5", - "jquery": "^1.9.1", + "jquery": "^3.7.1", "jss": "^3.2.0", "jss-nested": "^1.0.1", "lodash": "^3.7.0",