-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
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:
<sm-dropdown
autocentrum-select
ng-if="searchElement.nivel === 0"
ng-class="{
'ng-highlighted':
cautareService.model[category.id][searchElement.id] &&
cautareService.model[category.id][searchElement.id].length
}"
class="fluid multiple search selection"
model="cautareService.model[category.id][searchElement.id]"
items="searchElement.valori"
label="item.valoare"
value="item"
on-change="updateChildSearchElementValues(searchElement)"
default-text="searchElement.nume"
name="autocomplete-select-{{searchElement.id}}"
settings="{useLabels: false, message: {count: searchElement.nume + ' - {count} selectate' }}">
</sm-dropdown>```
The on-change callback function is called multiple times when you change the select value (5-6 times) and also, the biggest issue is that it gets called on every scroll event.
Metadata
Metadata
Assignees
Labels
No labels