-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
cockpit-components-terminal: change onFocusIn/OnFocusOut to onFocus/onBlur #9342
cockpit-components-terminal: change onFocusIn/OnFocusOut to onFocus/onBlur #9342
Conversation
onFocusIn={this.onFocusIn} | ||
onFocusOut={this.onFocusOut} />; | ||
onFocus={this.onFocusIn} | ||
onBlur={this.onFocusOut} />; |
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.
These events don't work with react-lite, the handler is never called. So either both properties should be set for a transitional period, or this is blocked on actually switching to React. At that point the handler methods should be renamed accordingly, too.
Let's keep it blocked till #9263 lands. |
#9263 landed now, unblocking. |
…onBlur React ceased to support onFocusIn/onFocusOut (facebook/react#6274). Closes cockpit-project#9342
7e77b96
to
4bad7a5
Compare
Rebased to current master and adjusted commit log a bit. This might even be a regression from the react switch, thus priority. |
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.
I tested this manually and confirm that this brings back the proper interception of Ctrl+W.
…onBlur React ceased to support onFocusIn/onFocusOut (facebook/react#6274). Closes cockpit-project#9342
Part of #9263 PR-split, see individual commits for more info.