onChange attr for custom widget
Closed this issue · 2 comments
marr commented
Hi Jonny,
I am building a custom widget for my form, and when I define the field that uses it, I set an onChange
property on the attrs
like so:
newforms.CharField({
widget: UnderlineInput({ attrs: {
onChange: function(e) { debugger }
}})
})
This doesn't appear to be getting called, and I've also tried setting the controlled
prop to true. Could you take a look at this widget and let me know what I might be missing? https://gist.github.com/marr/5ec1df3e47af551392a6
Thanks,
Dave
marr commented
bump
marr commented
bump