question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Accept readOnly props

See original GitHub issue

The component should accept readOnly props, in some cases its helpful because it prevents the keyboard in mobile devices from appearing.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:12

github_iconTop GitHub Comments

49reactions
umdechcommented, Feb 14, 2019

isSearchable={ false } worked!

12reactions
mpingcommented, Dec 17, 2015

Nevermind, just use inputProps={{readOnly:true}}

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found