Accept readOnly props
See original GitHub issueThe component should accept readOnly
props, in some cases its helpful because it prevents the keyboard in mobile devices from appearing.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:12
Top Results From Across the Web
Why props in React are read only?
The important concept of React component: a component should only manage its own state, but it should not manage its own props.
Read more >React: Property 'X' does not exist on type 'Readonly<{}>'
The React.js error "Property does not exist on type 'Readonly<{}>'" occurs when we try to access the props or state of a class...
Read more >Components and Props
Conceptually, components are like JavaScript functions. They accept arbitrary inputs (called “props”) and return React elements describing what should appear on ...
Read more >How do you say that props are read only?
How do you say that props are read only? When you declare a component as a function or a class, it must never...
Read more >What are React Props?
When you use any React component you can pass it some input data that you want it to work with. These properties are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
isSearchable={ false }
worked!Nevermind, just use
inputProps={{readOnly:true}}