Fix backspace handling for non-multi select controls. Fixes #638 - #773
Conversation
MrLeebo
commented
Feb 16, 2016
@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 |
hanc1208
commented
Oct 7, 2016
Please re-run ci and merge this pull-request.. |
coveralls
commented
Oct 7, 2016
MrLeebo
commented
Oct 7, 2016
@JedWatson@hanc1208 Closing and reopening the PR resolved the CI issue. I don't know why I didn't think to do that earlier :) |
hanc1208
commented
Oct 8, 2016
@MrLeebo Thank you! |
kenjiru
commented
Dec 20, 2016
Please merge this pull request! |
1 similar comment
tproenca
commented
Feb 9, 2017
Please merge this pull request! |
dongwoo1005
commented
Apr 4, 2017
Is this PR ever getting merged? |
bluespore
commented
Apr 10, 2017
@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 :) |
nealoke
commented
May 31, 2017
Please merge 👍 |
MrLeebo
commented
Jun 13, 2017
@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. |
agirton
commented
Jun 14, 2017
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. FixesJedWatson#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) FixJedWatson#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.