-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 new option prompt text when input is empty/reset/cleared #1575
Comments
+1 |
1 similar comment
+1 |
A quick (and dirty?) workaround currently is to manually delete the internal placeholder item whenever Here's an example using a stateless component: export default props => {
let ref;
return (<Select.Creatable ref={el => ref = el}
onChange(values => {
delete ref._createPlaceholderOption;
//resume handling the values
}/>)
} |
@tonisostrat why not simply hide element based on its class |
Because that only hides it visually. It's still persisted inside the |
+1 |
1 similar comment
+1 |
+1! @tonisostrat Your workaround doesn't work for me :( |
To me, this is fixed with #1306. Close? |
Hello - In an effort to sustain the We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our limited efforts to maintain the latest version. If you feel this issue / pull request is still relevant and you'd like us to review it, please leave a comment and we'll do our best to get back to you. |
Preconditions:
Steps:
Create an option "xxx"
is still there when you focus on the field. The same happens when you type something and click outside of the select container (blur) and focus on it again.It would be great if the prompt text
Create an option "xxx"
will not display when the input is empty/reset/cleared as it's kinda strange to display suggestion to create new option when there is nothing in the input. Thanks!The text was updated successfully, but these errors were encountered: