acute-select
acute-select copied to clipboard
access custom text with allowCustomText
Hi,
I understand that with
comboMode: true, allowCustomText: true
it is possible to allow for free text. Unfortunatly this text appears in the search box but not in the model. Its always the last selected option in the model and not the entered custom text...
I tried as well ac-change, but that is only triggered when you select an option as well...
Thanks for your help! Martin
I've figured out that with
"comboMode": false,
You get a small "+" sign with which you can add new options. In the model you have then the data like that:
{undefined: "my custom text"}
Which is a bit weired... I catch that now with a typeof in my controller....