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.

Release 1.1.0 `disabled` mode breaks `readonly` functionality.

See original GitHub issue

Since the release of the disabled prop in 1.1.0 we’ve encountered the follow issues:

  • :disabled="true" means that a user can not edit OR select the text (Allowing the user to select and copy text is a requirement for us.)
  • Passing readonly: 1 into init() no longer works as expected (the user cannot edit BUT should be able to select/copy content)

For now, we reverted to 1.0.8 since 1.1.0 is unusable.

What are the possible solutions?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fyrkantcommented, Nov 13, 2018

That readonly: 1 gets a different result than readonly: true has to be a bug in tinymce. 🤔

0reactions
fyrkantcommented, Dec 6, 2018

No this should be fixed in tinymce, the fact that a number get’s a different result is not how it should be.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can HTML checkboxes be set to readonly? - Stack Overflow
READONLY doesn't work on checkboxes as it prevents you from editing a field's value ... This way, when the checkbox is set to...
Read more >
Azure PowerShell release notes - Microsoft Learn
Learn about all of the latest updates to the Azure PowerShell modules.
Read more >
ASP.NET 2.0 ReadOnly behavior change when ... - Rick Strahl
It seems to me that if you disable viewstate it should not populate the controls value on the postback. Does'nt load viewstate run...
Read more >
Releases - Radix UI
Radix Primitives releases and their changelogs. ... 1.1.0. Add disabled prop to RadioGroup.Root – #1530 ... [Breaking] Remove readOnly prop – #600 ...
Read more >
HTML attribute: readonly - HTML: HyperText Markup Language
The difference between disabled and readonly is that read-only controls can still function and are still focusable, whereas disabled ...
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