Y
Hacker News
new
|
ask
|
show
|
jobs
by
esprehn
1253 days ago
That's handled by shadow dom event retargeting. When the events pass over the boundary of the component the target becomes the component itself instead of the input.
1 comments
logankeenan
1252 days ago
Yea, that’s been my biggest problem. The target is now different, so I can’t call event.target.value
link
esprehn
1252 days ago
Right, if you want `value` to be part of the public interface of your component you need to add a value property to expose it.
link