acute-select icon indicating copy to clipboard operation
acute-select copied to clipboard

access custom text with allowCustomText

Open adler99 opened this issue 9 years ago • 1 comments

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

adler99 avatar Mar 28 '15 20:03 adler99

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....

adler99 avatar Mar 28 '15 20:03 adler99