Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 0b10f59

Browse files
author
Daniel Schmidt
committed
fix(Select): call native set on current ref
1 parent 9257829 commit 0b10f59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Select/Select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ export default class Select extends React.Component {
2929
window.HTMLInputElement.prototype,
3030
"value"
3131
).set;
32-
nativeInputValueSetter.call(this.input, selectedOption.id);
3332

3433
if (this.input && this.input.current) {
34+
nativeInputValueSetter.call(this.input.current, selectedOption.id);
3535
this.input.current.dispatchEvent(new Event("input", { bubbles: true }));
3636
}
3737
}

0 commit comments

Comments
 (0)