close #322 hook select element selectedIndex property

This commit is contained in:
Yanzhen Yu
2020-09-12 17:28:29 +08:00
parent 8519329e90
commit 3abb2981ec

View File

@@ -292,6 +292,8 @@ function initInputObserver(
[HTMLInputElement.prototype, 'checked'],
[HTMLSelectElement.prototype, 'value'],
[HTMLTextAreaElement.prototype, 'value'],
// Some UI library use selectedIndex to set select value
[HTMLSelectElement.prototype, 'selectedIndex'],
];
if (propertyDescriptor && propertyDescriptor.set) {
handlers.push(