diff options
author | Surinna Curtis <ekiru.0@gmail.com> | 2017-08-31 22:41:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-31 22:41:49 -0500 |
commit | 667df47168ce563328d393b267fff063d8767140 (patch) | |
tree | 5108d62e5f1886800d61ae3ca0cbd660f55cd35e | |
parent | 173a970752ed8c86ee9323d33ba7eb8b44fe119f (diff) |
Remove workaround for fixed bug in SettingToggle
SettingToggle was toggling itself in response to keydown of space, and then the keyup was doing it again
-rw-r--r-- | app/javascript/mastodon/features/notifications/components/setting_toggle.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/app/javascript/mastodon/features/notifications/components/setting_toggle.js b/app/javascript/mastodon/features/notifications/components/setting_toggle.js index a20e7ca51..281359d2a 100644 --- a/app/javascript/mastodon/features/notifications/components/setting_toggle.js +++ b/app/javascript/mastodon/features/notifications/components/setting_toggle.js @@ -18,12 +18,6 @@ export default class SettingToggle extends React.PureComponent { this.props.onChange(this.props.settingKey, target.checked); } - onKeyDown = e => { - if (e.key === ' ') { - this.props.onChange(this.props.settingKey, !e.target.checked); - } - } - render () { const { prefix, settings, settingKey, label, meta } = this.props; const id = ['setting-toggle', prefix, ...settingKey].filter(Boolean).join('-'); |