-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add select component #232
Add select component #232
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice and clean!!
minor comments really
* @default '' | ||
* @public | ||
*/ | ||
value: '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was the intention to use PLACEHOLDER_VALUE
const here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but I avoided doing so to stop the linter moving this to the end of the file 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, yeah...no biggie
addon/components/polaris-select.js
Outdated
* @type {Object[]} | ||
* @private | ||
*/ | ||
normalizedOptions: computed(function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this depend on options
at least?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
looks solid to me!
Closes #228 by adding
polaris-select
. Original component source is here.I've added a test page to the dummy app - here's a GIF of it in action:
![polaris-select](https://user-images.githubusercontent.com/5737342/47497416-b2070800-d862-11e8-8e37-3ff89e7934b3.gif)
You can compare it to the same page in React world here.