-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Fix backspace handling for non-multi select controls. Fixes #638 #773
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
Conversation
|
@JedWatson I don't think the CI failure has anything to do with this commit. The test Since the CI server looks like a less powerful machine, the test is probably just hitting the 2s timeout. Weird that a nearly identical test like |
|
Please re-run ci and merge this pull-request.. |
|
@JedWatson @hanc1208 Closing and reopening the PR resolved the CI issue. I don't know why I didn't think to do that earlier :) |
|
@MrLeebo Thank you! |
|
Please merge this pull request! |
1 similar comment
|
Please merge this pull request! |
|
Is this PR ever getting merged? |
|
@JedWatson - I've implemented a soft fix in the mean time, but it looks as though there are others that have been waiting for this one to be merged as well. Gentle bump on an update here :) |
|
Please merge 👍 |
|
@JedWatson @agirton I've updated the description with steps to reproduce the issue in master. The PR resolves this issue. Please let me know if there is anything else that needs to happen for this to be merged. |
|
Hi @MrLeebo thank you for your patience and the unit test. Agreed this should be merged in. |
…ate_and_add_creatable_options * commit '26169305a721ec3099a912cea2f6ed38e6dc9c4c': (36 commits) Fix Usage Docs Example (JedWatson#1799) Hide create option after closing menu (JedWatson#1306) Update README.md to include 'valueComponent' prop (JedWatson#1803) Adding merged changes to changelog Fix backspace handling for non-multi select controls. Fixes JedWatson#638 (JedWatson#773) Update Select.js [ADD] Clarified the onInputChange prop signature in the docs (JedWatson#1773) [FIX] JedWatson#1651 moved option prop sync to componentWillReceiveProps (JedWatson#1765) v1.0.0-rc.5 Updating build Update changelog Fix selected option focus when valueKey is not "value" (JedWatson#1733) Fix aria owns value (JedWatson#1556) Fix JedWatson#1394 (JedWatson#1395) v1.0.0-rc.4 Bumping create-react-class and prop-types Update react-input-autosize dep added variables for shadow styles Move over examples to use new pkgs Migrate rest of src overto createClass pkg ... # Conflicts: # dist/react-select.js # dist/react-select.min.js # examples/dist/bundle.js # examples/dist/standalone.js # lib/Async.js # lib/Value.js
Merging this PR will resolve the following issues: #638, #746, #1596, #1680, #1215
REPRO STEPS:
npm startopen http://localhost:8000<Select multi={false} simpleValue={false} />EXPECTED:
ACTUAL:
RESOLUTION:
Non-multi select controls return an empty array in the onChange event instead of the expected
nullvalue when you press backspace to clear the selection.This is @slestang's implementation from #638 and I've added a unit test.