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

Hide create option after closing menu #1306

Merged
merged 2 commits into from
Jun 23, 2017

Conversation

andreme
Copy link
Contributor

@andreme andreme commented Oct 15, 2016

Always pass changes to the input value back to the Creatable.

There is one change in focusAdjacentOption where I wasn't sure whether handleInputValueChange should also be called?

This should fix #1256

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 92.288% when pulling 1ff6c57 on andreme:fix_create_option into 4487ca7 on JedWatson:master.

@JedWatson
Copy link
Owner

This looks good to me, @bvaughn let me know if you can see any issues merging this?

@bvaughn
Copy link
Collaborator

bvaughn commented Oct 15, 2016

Nice fix, @andreme. 😄

At a quick glance, the change seems good to me @JedWatson. Cannot easily smoke-test it b'c I am without a laptop this weekend (in between jobs) but I think the approach looks solid.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 92.288% when pulling 61d0990 on andreme:fix_create_option into 4487ca7 on JedWatson:master.

@andreme
Copy link
Contributor Author

andreme commented Nov 26, 2016

@JedWatson @bvaughn Any chance for a merge soon?

@Praiodan
Copy link

Would be a useful fix for us, too.

@xthiago
Copy link

xthiago commented May 24, 2017

@JedWatson @bvaughn Could you merge this PR?

@g3ortega
Copy link

I'm needing this, any news?

@agirton agirton merged commit b068247 into JedWatson:master Jun 23, 2017
@agirton
Copy link
Collaborator

agirton commented Jun 23, 2017

Tested this locally and works as expected. Thank you for your patience!

@andreme andreme deleted the fix_create_option branch June 23, 2017 04:06
@xthiago
Copy link

xthiago commented Jun 26, 2017

Thank you @agirton and @andreme! \o/

Will this feature be released in the next release candidate of version 1.0?

@CShigaki
Copy link

@agirton @andreme I cloned master and tested it locally but it didn't work for me

@agirton
Copy link
Collaborator

agirton commented Jun 28, 2017

@CShigaki did you build the examples or just clone and run install?

ryanabooth added a commit to entelo/react-select that referenced this pull request Jun 29, 2017
…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
@lorenzos
Copy link

lorenzos commented Jul 27, 2017

I think this fixed also #1575. On the examples I'm not able to reproduce #1575 anymore. If I checkout before this PR's merge with git checkout d8a34ec, I see #1575 again.

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

Successfully merging this pull request may close these issues.

Remove Creatable's new option on close
10 participants