Issues using dropdown with select instead of hidden input #1319
-
Hello, according to this I can build a dropdown using a div with hidden input or a select with options. I prefer to use select (even for WCAG reasons) but since I wrap it in an Angular component I'm experiencing problem in binding a loading status. I think this happens because when I use
it becomes this:
So using (Sorry, I can't provide you a jsfiddle or stackblitz code because of this). |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Can't you just add the |
Beta Was this translation helpful? Give feedback.
-
Thank you for your hint, but it doesn't work because it should be quite the same of using bind variables on template. |
Beta Was this translation helpful? Give feedback.
-
Then I am afraid you might have to use the div version of dropdown as an angular template |
Beta Was this translation helpful? Give feedback.
-
I have found a solution using your hints. Now it works with |
Beta Was this translation helpful? Give feedback.
Can't you just add the
loading
class to the.ui.dropdown
selector after thr dropdown has been transformed into a div? It does not matter if its a select or div.Yes, angular still refers to the hidden select tag, but just doing
$('.ui.dropdown').addClass('loading')
may probably work for you?See https://jsfiddle.net/spthmegf/ (not angular, though)