ngx-formly / ngx-formly

📝 JSON powered / Dynamic forms for Angular
https://formly.dev
MIT License
2.81k stars 566 forks source link

options.onChange is not working as expected for select #3092

Closed nbpro closed 2 years ago

nbpro commented 2 years ago

expressionProperties: { 'options.onChange': ($viewText, $modelValue, $scope) => { console.log('hi'); }, },

onChange event is triggered in an infinite loop even though there is no user event in the browser.

Angular : 11.0.0 "@ngx-formly/core": "^5.10.14", "@ngx-formly/ng-zorro-antd": "0.0.1",

aitboudad commented 2 years ago

The issue has been already fixed in https://github.com/ngx-formly/ngx-formly/releases/tag/v5.10.26, just make sure to update Formly to the latest version.

zzhimin commented 3 weeks ago

you can also use this library:https://github.com/zzhimin/ngx-ng-zorro-formly