Open ghost opened 6 years ago
From what I noticed the on-change is called incorrectly. So there it should be: on-change="updateChildSearchElementValues"
. I am now correctly setting up the on-change event but this is called multiple times. The following scenario happens:
Basically with a new selection added, the callback returns n*2 (n is the number of selected items).
Is this repository followed anymore?
Greetings Florinmtsc!
The on-change attribute is tied directly into the Semantic UI library and is not evaluated by this library. You should check your Semantic UI version and if you are up to date perhaps try to report the issue in the main SUI repository.
There are plans to eventually change to using the ngModel directive which would allow you to use the ngChange event. But I don't know when I'll get to that.
There are a few other odd issues with smDropdown depending on how you are using it (I've experienced them myself but no one has reported them yet) - and those issues would be addressed in the next version as well.
Thanks for your response. I'll try to implement the ngModel and create a pull request. Hopefully my time will allow this wish.
Hello guys,
First, congratulations on the work you have provided and many thanks for the useful functionality you provide. There is some weird behavior with the on-change function callback.
I have the following usage of the sm-dropdown component: