Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upfeat(Select): add creatable and new features #2820
Conversation
This comment has been minimized.
This comment has been minimized.
PatternFly-React preview: https://patternfly-react-pr-2820.surge.sh |
This is looking good, But a couple of questions:
|
This comment has been minimized.
This comment has been minimized.
@mcarrano Both new and creatable should work for multi-type ahead select as well. I will add the checkbox toggles to that example! |
A few comments. Otherwise looks good. Thanks. |
packages/patternfly-4/react-core/src/components/Select/Select.md
Outdated
Show resolved
Hide resolved
packages/patternfly-4/react-core/src/components/Select/Select.test.tsx
Outdated
Show resolved
Hide resolved
...t-integration/demo-app-ts/src/components/demos/SelectDemo/SelectDemo.tsx
Show resolved
Hide resolved
...t-integration/demo-app-ts/src/components/demos/SelectDemo/SelectDemo.tsx
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
When the menu expands up, should the arrow rotate @mcarrano |
This comment has been minimized.
This comment has been minimized.
@jschuler autocomplete is set to off for all selects, so I'm unsure why it would be showing up. Which browser are you using? @christiemolloy Re: multi-typeahead, it looks like you are selecting Alabama twice, first which selects it and second which unselects it and removes it form the chip group. |
This comment has been minimized.
This comment has been minimized.
@kmcfaul strange, Chrome 76.0.3809.132. If no one else sees this then it might be something on my end |
This comment has been minimized.
This comment has been minimized.
That's my version of Chrome and I'm not seeing the autocomplete on the surge. Very odd. Anyone else seeing it? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@kmcfaul do you have autofill enabled? |
This comment has been minimized.
This comment has been minimized.
I do have it enabled. |
This comment has been minimized.
This comment has been minimized.
Might have to wrap in form tags as this comment suggests https://gist.github.com/niksumeiko/360164708c3b326bd1c8#gistcomment-3004386 |
This comment has been minimized.
This comment has been minimized.
That seems less than ideal, html structure wise. Will try it out though, hopefully shouldn't change anything visually. |
This comment has been minimized.
This comment has been minimized.
@kmcfaul ok, i don't recall seeing autocomplete before, i wonder why it's showing now |
This comment has been minimized.
This comment has been minimized.
Regarding your question @christiemolloy:
I don't feel strongly about this, but I think we should just be consistent with what we do for other dropdown or select instances. |
This comment has been minimized.
This comment has been minimized.
I think it makes sense to have the arrow icon change to an upward direction on direction toggle. This is more of a quick bugfix than related to this particular PR though. I can put up a different PR for it. |
This comment has been minimized.
This comment has been minimized.
@kmcfaul wrapping inputs with form elements fixed the auto complete issue for me |
LGTM |
LGTM |
kmcfaul commentedSep 3, 2019
What: Adds the creatable and new use cases to select via
isCreatable
andonCreateOption
properties. Specifically applies to typeahead variants.Refer to issue: #2665