Option entry in second argument of onchange is useless #5438
Replies: 4 comments
-
It would be consistent if the |
Beta Was this translation helpful? Give feedback.
-
Greetings @WaqqarSuleman , I recently brought this up and agree. We recently accepted a PR which added |
Beta Was this translation helpful? Give feedback.
-
@ebonow You are totally correct! |
Beta Was this translation helpful? Give feedback.
-
Has there been any movement to add |
Beta Was this translation helpful? Give feedback.
-
Hi,
I think you should either remove
option
entry form second argument ofonChange
or fill the value in bothsingle
andmulti
modes.Right now
option
isundefined
insingle
mode and filled with selected item whenisMulti
istrue
. and this makesoption
useless, unless there is usecase which I didn't catchSingle mode:
{ action: "select-option", option: undefined, name: "blah" }
Multiple mode:
{ action: "select-option", option: {…}, name: "blah" }
Beta Was this translation helpful? Give feedback.
All reactions