close #322 hook select element selectedIndex property

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 2501993f07
commit 9b097ad030

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(