close #322 hook select element selectedIndex property
This commit is contained in:
@@ -292,6 +292,8 @@ function initInputObserver(
|
|||||||
[HTMLInputElement.prototype, 'checked'],
|
[HTMLInputElement.prototype, 'checked'],
|
||||||
[HTMLSelectElement.prototype, 'value'],
|
[HTMLSelectElement.prototype, 'value'],
|
||||||
[HTMLTextAreaElement.prototype, 'value'],
|
[HTMLTextAreaElement.prototype, 'value'],
|
||||||
|
// Some UI library use selectedIndex to set select value
|
||||||
|
[HTMLSelectElement.prototype, 'selectedIndex'],
|
||||||
];
|
];
|
||||||
if (propertyDescriptor && propertyDescriptor.set) {
|
if (propertyDescriptor && propertyDescriptor.set) {
|
||||||
handlers.push(
|
handlers.push(
|
||||||
|
|||||||
Reference in New Issue
Block a user