-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the value transfer into the event handlers
Before this commit, the work of moving the interim value out of the `focus_field` and into the `search_field` and then clearing the `focus_field` was split into separate places: - `get_search_field_value` was doing the copying. - and then we had to remember to clear the `focus_field`, if it existed, anytime we cleared the `search_field` This commit moves all of that into one place, the event handlers where the `focus_field` passes control back to the rest of Chosen. Note: the `setTimeout`s are needed for the cut/paste events to make sure the value being read from the `focus_field` happens after the events finish changing the input's value.
- Loading branch information
Arun Srinivasan
committed
Apr 4, 2018
1 parent
e5de6f4
commit 1b359fc
Showing
2 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters