Comments (4)
Reproduced, thanks. This issue seems to be related to #9753.
For now, you can use the validate
prop of the <Form>
component to apply the validation you need.
from react-admin.
Indeed, if you replace disabled
by readOnly
, the problem disappears. I suspect this is a react-hook-form bug.
from react-admin.
Indeed, if you replace
disabled
byreadOnly
, the problem disappears. I suspect this is a react-hook-form bug.
I didn't check in details how are you using react hook form but I tried a basic example with react hook only and it was working fine
from react-admin.
@endrits079 we had issues in the past with a breaking change introduced by RHF in version 7.47.0 which affected disabled inputs. That's why we made sure the readOnly
prop is supported on every input component in react-admin (#9656).
If using readOnly
allows to fix the problem, we will consider this issue solved.
If using readOnly
cannot be applied in your case, feel free to elaborate.
from react-admin.
Related Issues (20)
- The "Blog" demo app doesn't work HOT 5
- Filter with an object as defaultValue is still visible after user click the remove filter button HOT 2
- V5 beta: duplicated queries on mount HOT 2
- Removing an item from an ArrayInput with primitive values and validation removes more than one input HOT 2
- Incorrectly parse of id with basename name same as resource name HOT 1
- Custom Save Button In TopToolbar inside Edit component HOT 2
- V5 beta: List pages are not showing data and display an error notification HOT 2
- Add custom label prop to SelectColumnsButton HOT 2
- Make the icon on the login screen a property so it can be customized
- TitleConfigurable logs a warning when customizing the title
- Le chargement du module a été bloqué en raison d'un type MIME interdit ("text/html") HOT 2
- Disabled TextInput in SimpleForm returns undefined HOT 3
- loosing custom piece of state in query parameters for list view URL when setFilter is called HOT 2
- Help to port for Flutter HOT 1
- testing-library fireEvent.change on Filter doesn't rerender the list HOT 1
- `sanitizeEmptyValues` does not support nested fields HOT 3
- Inputs are not displayed when using TabbedForm HOT 1
- testing bug with version 5 HOT 6
- [RA5] - Common Input Props are missing the "readOnly" prop, that was present in React Admin 4
- Login page is not showing on '/login' route HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-admin.