简体   繁体   中英

angular is not detecting change in input field

we are making an extension that scans the input field and fills some data into it. I am using the.value operator to fill the data. The problem is, it works in almost every case except the angular material input. I am able to set the value of the input, it displays in the field but somehow angular is unable to detect change.

try to dispatch an input event

target.dispatchEvent(new InputEvent('input', {bubbles: true}));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM