[REF-554] Wrapping event triggers of React components with more than one parameter #1762
Labels
feature request
A feature you wanted added to reflex
linear
Created by Linear-GitHub Sync
Medium priority
Created by Linear-GitHub Sync
Hello, I'm struggling with wrapping callbacks of
FormSelect
component from@patternfly/react-core
library. The issue is that theonChange
callback has two parameters ((event: React.FormEvent<HTMLSelectElement>, value: string) => void
, see the docs) but I'm able to generate only one parameter in the callback in the resulting javascript code.I have the following code:
Which results in this javascript which is not correct,
onChange
callback should have more than just the_e
argument:I was able to "fix" it with manual touches to the javascript code:
But I don't know how to achieve this within the python code. I tried adding an extra parameter to the python handler:
But no luck:
Thanks in advance for any help!
REF-554
The text was updated successfully, but these errors were encountered: