Dear All,

I am looking into how to clear selections of a select2 dropdown. Since 
Arches uses JQuery select2 inputs, I thought that, at least from the point 
of view of the display (then, of course, there is the KO viewModel that 
needs to be changed), I could do so by adding to the binding the argument 
allowClear = true, which according to the Select2 documentation 
(https://select2.github.io/examples.html for Placeholders), makes an X icon 
appear next to the dropdown arrow. However, this does not seem to work. I 
then thought that the problem could be a CSS overriding the X icon and the 
dropodwon arrow from appearing. So I commented the section below in 
arches.css

 select2-arrow{
    display: none !important; /*removes the down arrow from dropdowns*/
} 

This reintroduced the  dropdown arrows, and with it, it re-allowed 
backspacing on selected concepts. But allowClear=true still does not make 
the X icon appear. Any ideas as to why this is the case?


Andrea

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to