Skip to content
Advertisement

Tag: dropdown

Angular-6 show and hide drop-down select option not showing proper data

I have 2 types of drop-down based on the select value column drop-down will show. (one for to show database data, another one for to show desktop data.) https://stackblitz.com/edit/angular-ivy-3n238j?file=src%2Fapp%2Fapp.component.html app.componet.html My issue is below In 1st row if I select desktop it will show desktop data’s in value column drop-down. In 2nd row if I select database, desktop will be

Close Dropdown when other Dropdown is toggled active

i am trying to close let´s say Dropdown A automatically, when Dropdown B gets classList.toggle(“active) (in this case i toggle the ClassList with a Click) I can open (classList.toggle(“active)) and close (classList.toggle(“inactive)) it manually, but i want to close it automatically. Right now i got this: The Problem is now: when i click on one of the 4 Modules of

Advertisement