-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot click on 'readonly' inputs / textarea #4874
Comments
I updated to latest Cypress version and facing this issue of 'readonly' inputs while clicking the Calendar to select a date. When will this be resolved? |
@prashantabellad We have a working PR in, so just needs review. #4881 |
Hey, any update on when this change will be merged in? :-) |
Still an issue... |
@alendorff You're correct. The issue will be closed and commented on as released when this is fixed. |
The code for this is done in cypress-io/cypress#4881, but has yet to be released. |
Put the input inside a div and click on the div. It worked for me. |
Released in |
Same happens in 3.5.0 :( |
Turns out it was covered by another element https://docs.cypress.io/guides/core-concepts/interacting-with-elements.html#Actionability |
Current behavior:
As noted initially from this comment #4783 (comment), Cypress now errors since 3.4.1 release when attempting to click on a
readonly
input or textarea.Desired behavior:
Unlike an input being
disabled
, having areadonly
attribute does not restrict clicking, focusing, selecting, or triggering events on the element. These actions should be allowed and only typing should be restricted.Steps to reproduce: (app code and test code)
Versions
Cypress 3.4.1
The text was updated successfully, but these errors were encountered: