-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Ui search select fix #7338
Ui search select fix #7338
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.
looks great! adding the test is great and glad you got the cleanup items in there to remove .get
where you could
@@ -101,7 +101,7 @@ | |||
"ember-load-initializers": "^2.0.0", | |||
"ember-maybe-import-regenerator": "^0.1.6", | |||
"ember-maybe-in-element": "^0.4.0", | |||
"ember-power-select-with-create": "cibernox/ember-power-select-with-create#6203918f247c1c5d692db4f9185ab8321d2125e1", | |||
"ember-power-select-with-create": "^0.6.2", |
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.
yesssssss 💅
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.
I don't think we'll be able to backport the upgrade, but the same code fixes should still work
* guard against options and model not being defined * add test for select with no options
There was a regression where if there were no options, the error would get swallowed in a try/catch and we wouldn't show the add option.
Returning early when there are no
options
avoids the error.This also updates
ember-power-select-with-create
to the latest release, and fixes some errors I encountered when clicking theCancel
link on the identity edit form.