Skip to content
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

dijit/focus registers a click in a scrollbar as a focus change #184

Open
dejohandejong opened this issue Aug 25, 2020 · 0 comments
Open

Comments

@dejohandejong
Copy link

dijit/focus registers a click in a scrollbar as a focus change while the browser does not change focus.
As a result _onBlur is called when it should not, and more importantly, not called when it should be called.

Consider this scenario:

  • I have a dijit/TextArea with intermediateChanges=false (the default)
  • type some text in the textarea
  • click on a scrollbar (any scrollbar) => dijit/focus considers this a focus change, thus calls _onBlur on widgets in the current stack and sets the new stack. The caret cursor though stays in the textarea.
  • type some more text
  • click anywhere outside the textarea => this is a focus change. The caret cursor disappears from the textarea. dijit/focus also registers it as a focus change, but since the active stack was already changed it will not call _onBlur on the textarea. The last text you entered is thus not set to the value of the textarea.

Found on dojo version 1.16.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant