You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
I'm using Etch to build a plugin and I have a select. I've try to use "React style" of having <select value={this.state.myval} but it does not seem to work.
I've end up running the following line after etch.initialize(this): this.refs.myselect.value = this.state.myval
Do you have a recommended way of selecting an item in a select.
The text was updated successfully, but these errors were encountered:
I haven't actually tried to use a select myself yet. The virtual-dom library used by etch assigns properties to the DOM nodes based on the JSX attributes, so I'm surprised that assigning the value property manually gives you a different behavior. Basically, this should work. Can you fiddle with it a bit more and if it still doesn't I'll try adding a case to the test suite to figure out what's going on.
I'm using Etch to build a plugin and I have a select. I've try to use "React style" of having
<select value={this.state.myval}
but it does not seem to work.I've end up running the following line after
etch.initialize(this)
:this.refs.myselect.value = this.state.myval
Do you have a recommended way of selecting an item in a select.
The text was updated successfully, but these errors were encountered: