final-form-material-ui icon indicating copy to clipboard operation
final-form-material-ui copied to clipboard

Select not open on first click

Open Daniel-Raz-Supersmart opened this issue 3 years ago • 5 comments

Hi, can anyone help me why the Select won't open at first click? https://stackblitz.com/edit/react-jtv7me?file=demo.js

Daniel-Raz-Supersmart avatar Dec 13 '21 13:12 Daniel-Raz-Supersmart

Why are you using a project which has had no development on it in years?

Try this instead:

https://github.com/lookfirst/mui-rff

lookfirst avatar Dec 13 '21 13:12 lookfirst

It looks too complex, you have an example of using TextField and Select with react-final-form validation?

Daniel-Raz-Supersmart avatar Dec 13 '21 13:12 Daniel-Raz-Supersmart

It isn't too complex. It is well tested and downloaded 35k a month.

lookfirst avatar Dec 13 '21 13:12 lookfirst

I'm looking for examples of TextField and Select with validation but won't see also all sandbox and stackblitz of MUI-RFF crashes, maybe you have an example for me how to implement this with Mui -RFF?

Daniel-Raz-Supersmart avatar Dec 13 '21 13:12 Daniel-Raz-Supersmart

Ok thanks now i try it and I have a problem with Select with object as value <Select required name="store" label="Store Id" defaultValue="" > {stores.map((store, index) => ( <MenuItem key={index} value={store} > {store.name} </MenuItem> )) } </Select>

stores are an array of objects and I got this error "Uncaught Error: A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information. " can you help me please how handle this problem?

Daniel-Raz-Supersmart avatar Dec 13 '21 15:12 Daniel-Raz-Supersmart