Manualy open the submenu
stephane-r opened this issue · comments
Hi !
Is it possible to open submenu manualy ? I updated my whitelist
after ajax request, but the submenu stay closed.
I see show
method, maybe i can toggle the submenu with this ?
Thank you !
const new tagify = Tagify(...)
tagify.dropdown.show.call(tagify, 'somevalue') // will render the dropdown
Mmmm sorry, the submenu is not opened with this :
if (props.settings) {
this.tagify.settings.whitelist = props.settings.whitelist;
this.tagify.dropdown.show.call(this.tagify, 'somevalue');
}
I need to get the random value from my whitelist ?
No need for a random value, or any value if you don't want to pre-filter the suggestions dropdown list
Okay.
My previous message don't work (with React component). Maybe i need other params ?
It should have worked. Check the function tagify.dropdown.show
is actually called, debug Tagify itself. maybe i'ts not called..