-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set selected item from external code #15
Comments
This is similar to #11 . The proposed solutions are:
Neither approach highlights the item in the drop-down menu. When user clicks that item (that should have already been highlighted before from external code) in the list, the item gets highlighted and a change event gets fired (but it shouldn't). |
binding appears to work except when I set the model back to null which should restore the box to the watermark, but it does not. Perhaps there is a fix for this? I resolved this issue to set the model back to the watermark, set it to an object of nulls such as{ "name":null, "id": null}; |
I have the same problem but your workaround doesn't seem to work for me. I tried assigning the model to { "name":null, "id": null}; But the select keeps the previously selected value. I am using ac-settings="{loadOnOpen: true, loadOnCreate:false, comboMode:false, allowClear: true}" and ac-key="id". |
How do I set the selected item (from external code) after
acute-select
is already loaded?Changing the
ac-model
object to the desiredid
&name
correctly updates the display when the drop-down menu is closed.However, once you open the drop-down menu the item is not selected/highlighted.
The text was updated successfully, but these errors were encountered: