Skip to content

Hide create option after closing menu#1306

Merged
agirton merged 2 commits into
JedWatson:masterfrom
andreme:fix_create_option
Jun 23, 2017
Merged

Hide create option after closing menu#1306
agirton merged 2 commits into
JedWatson:masterfrom
andreme:fix_create_option

Conversation

@andreme

@andreme andreme commented Oct 15, 2016

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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
Copy Markdown
Owner

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

@bvaughn

bvaughn commented Oct 15, 2016

Copy link
Copy Markdown
Collaborator

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
Copy Markdown

Coverage Status

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

@andreme

andreme commented Nov 26, 2016

Copy link
Copy Markdown
Contributor Author

@JedWatson @bvaughn Any chance for a merge soon?

@Praiodan

Copy link
Copy Markdown

Would be a useful fix for us, too.

@xthiago

xthiago commented May 24, 2017

Copy link
Copy Markdown

@JedWatson @bvaughn Could you merge this PR?

@g3ortega

Copy link
Copy Markdown

I'm needing this, any news?

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

agirton commented Jun 23, 2017

Copy link
Copy Markdown
Collaborator

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

xthiago commented Jun 26, 2017

Copy link
Copy Markdown

Thank you @agirton and @andreme! \o/

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

@CShigaki

Copy link
Copy Markdown

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

@agirton

agirton commented Jun 28, 2017

Copy link
Copy Markdown
Collaborator

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

ryanabooth pushed 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

lorenzos commented Jul 27, 2017

Copy link
Copy Markdown

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