-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(spinner) Added spinner on refresh and select2 #1779
Conversation
I thought the main purpose of the icon would be for async refresh calls so it should check if refreshAttr returns a promise and waits if so, see #1029. Note: there's no tests either 🙁. It would be nice to support selectize too if we can, as otherwise this would just mean a new issue gets raised claiming yet another bug in ui-select. |
You are probably right. Will refacto it and add some tests. |
For reference #919 will also be closed. |
@aaronroberson or @user378230 can you have a look at this? 😄 |
"i" was missing in the name of "Angular-Sanitze"
@user378230 did you had have some time to review this? |
It seems there is a error by the class quotation marks https://github.com/Jefiozie/ui-select/blob/50b6bf9331782f940eb1119a785572513a20152f/src/bootstrap/select.tpl.html#L3 |
Fix: Quotation mark error
@danivarga , thank you missed that one. |
fix 0.17.0 version in changelog
This is a fix for a severe error found using the Google Accessibility Developer Tool audit: ARIA attributes which refer to other elements by ID should refer to elements which exist in the DOM.
This is a fix for a severe error found using the Google Accessibility Developer Tool audit: Elements with ARIA roles must ensure required owned elements are present
This is a fix for a severe error found using the Google Accessibility Developer Tool audit: Elements with ARIA roles must ensure required owned elements are present
@Jefiozie Can you resolve the merge conflicts and I'll get this merged in right away? |
Setting clickTriggeredSelect to true for "touchend" events fixes an issue I've encoutered when using this property in a search box (using ui-select-match and ui-select-choices), where we couldn't distinguish typing from clicking on an autocomplete result on mobile devices.
@aaronroberson , Everything is fine.. but for some reason I added the other commits. Any thoughts on how to fix it? Don't know what happend exactly. |
@Jefiozie The conflicts appear to be resolved now and I've gone ahead and merged. |
@aaronroberson can you close #1029, #919, #248? |
var refreshPromise = $scope.$eval(refreshAttr); | ||
if (refreshPromise && angular.isFunction(refreshPromise.then) && !ctrl.refreshing) { | ||
ctrl.refreshing = true; | ||
refreshPromise.then(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.
Shouldn't you take into account the rejection case?
I think the best fit it will be something like
refreshPromise.finally(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.
@bogdanalexe90 made a new PR with the adjustments.
I think instead of adding spinner it would be great if only a |
@bogdanalexe90 , you are probably right will have a look at it Thanks for the feedback!. @shyamal890 , interesting and people can then change the div in html with the style they like? |
@Jefiozie Exactly! people can then change content inside the Something like:
|
@shyamal890 I can change it as describe above but shouldn't there be a out of the box working solution? If I change it to the above behavior everybody needs to make adjustments instead of just using it as is? And if people want to make adjustments isn't it better that they use a custom theme? |
@Jefiozie Hmm, I guess it should be something like this: Expect for
What do you think? |
I still believe the implementation as it is now is a good solution. People van use custom theme for custom behaviour/style |
Agreed. |
* Added the select2 spinner on updating * Added bootstrap refreshicon * changed func. and added tests * docs(README): fix angular-sanitize typo "i" was missing in the name of "Angular-Sanitze" * feat(selectize): add support for multiple selection Closes angular-ui#295, closes angular-ui#1787 * Fix: Quotation mark error * Update CHANGELOG.md (angular-ui#1816) fix 0.17.0 version in changelog * fix: ensure aria-activedescendant is correct This is a fix for a severe error found using the Google Accessibility Developer Tool audit: ARIA attributes which refer to other elements by ID should refer to elements which exist in the DOM. * fix: only apply listbox role when open This is a fix for a severe error found using the Google Accessibility Developer Tool audit: Elements with ARIA roles must ensure required owned elements are present * fix(bootstrap): add search role This is a fix for a severe error found using the Google Accessibility Developer Tool audit: Elements with ARIA roles must ensure required owned elements are present * feature(touch): set clickTriggeredSelect to true for touchend events Setting clickTriggeredSelect to true for "touchend" events fixes an issue I've encoutered when using this property in a search box (using ui-select-match and ui-select-choices), where we couldn't distinguish typing from clicking on an autocomplete result on mobile devices. * Added the select2 spinner on updating * Added bootstrap refreshicon * changed func. and added tests * Fix: Quotation mark error
This PR is based on #248 and #1029, needed it for my own and saw that these PR's where still open.
If approved 248 can be closed and maybe 1029 also but there are some other commits there.