-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EnhancedSwitch] Remove window-listenable mixin #3307
Conversation
I'm loving this 😍 😍 👍 |
Yeah @oliviertassinari's component is making this really easy. 👍 |
@@ -187,11 +183,6 @@ const EnhancedSwitch = React.createClass({ | |||
window.removeEventListener('resize', this._handleResize); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use the <EventListener />
for the resize
event 😄?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Didn't realize this component was using the mixin and doing it manually!
2bb64a8
to
b417dad
Compare
|
I'm glad it's helping 😄. For the record, I needed it to listen for some cordova events: <EventListener elementName="document" onBackButton={this.handleBackButton} /> @newoga Thanks! |
[EnhancedSwitch] Remove window-listenable mixin
No description provided.