diff --git a/.eslintrc b/.eslintrc index 0f541f19ff3..b6f796796cb 100644 --- a/.eslintrc +++ b/.eslintrc @@ -177,6 +177,7 @@ "unordered", "unprocessable", "unselect", + "unselecting", "unstyled", "virtualization", "vms", diff --git a/webpack/assets/javascripts/react_app/components/common/forms/Select.js b/webpack/assets/javascripts/react_app/components/common/forms/Select.js index b161645b22b..56ff95e9633 100644 --- a/webpack/assets/javascripts/react_app/components/common/forms/Select.js +++ b/webpack/assets/javascripts/react_app/components/common/forms/Select.js @@ -25,8 +25,8 @@ class Select extends React.Component { attachEvent() { const { onChange } = this.props; $(this.select) - .off('change', onChange) - .on('change', onChange); + .off('select2:select select2:unselecting', onChange) + .on('select2:select select2:unselecting', onChange); } componentDidMount() {