I use react-datasheet table to show a matrix of data. I have overwritten the dataEditor to open a custom dialog where you can only select preselected values, from a material-ui dropdown. But if you select a value from dropdown the dialog, the dialog will be close without triggering onChange function.
I did rebuild the issue in a codesandbox: https://codesandbox.io/s/rough-moon-4cfe3
If I use native dropdown I can select a value and my
onChangefunction will be triggered:
<Select native onChange={handleChange} value={currentValue}>insrc/components/EditorDialog.js:17
from React-datasheet editorDialog closed by dropDown click without tigger onChange
No comments:
Post a Comment