Required is not disable dynamically in "display: none;" (input=radio,select)
Reported by
cxkpx...@gmail.com,
Mar 16 2016
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36 Example URL: Steps to reproduce the problem: 1. describe post form with some required radio button setting style="display: none;". 2. remove required (I remove javascript on load event.) 3. submit. It occur error "An invalid form control with name='name' is not focusable." though radio is not required. I get this error select box too.(It happen consecutive select box.) What is the expected behavior? It should not occur error. What went wrong? Sorry, I don't know contents of the update. I guess some fixes type. Does it occur on multiple sites: N/A Is it a problem with a plugin? No Did this work before? Yes 48.0.2564.116 is work Does this work in other browsers? Yes Chrome version: 49.0.2623.87 Channel: stable OS Version: OS X 10.11.3 Flash Version: Shockwave Flash 21.0 r0
,
Mar 17 2016
I make sample script. Please check source code and console error. http://210.140.217.179/
,
Mar 17 2016
This is source code.
<html>
<head><title>PHP TEST</title></head>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<body>
<p>
10×4=
</p>
<form method="POST" action="/test2.php">
<input type="radio" name="question1" value="secret1" style="display: none;" required>
<input type="radio" name="question1" value="secret2" style="display: none;" required>
<input type="radio" name="question1" value="secret3" style="display: none;" required>
<input type="text" name="text1">
<input type="submit" name="btn1" value="answer">
</form>
<script>
window.onload = function(){
$('[name="question1"]').prop('required', false);
}
</script>
</body>
</html>
,
Mar 17 2016
This problem has occurred in all device.
,
Mar 17 2016
Thank you for providing more feedback. Assigning to requester "erikchen@chromium.org" for another review. For more details visit https://sites.google.com/a/chromium.org/dev/issue-tracking/autotriage - Your friendly Sheriffbot
,
Mar 17 2016
I'm not seeing any problems on Canary 51.0.2673.0, OS X 10.11.3. Please provide information about your device and Chrome version. Screenshots showing the error would be helpful as well.
,
Mar 18 2016
This error occur on OS X 10.11.3 - 49.0.2623.87 , Android 5.0.1 - 49.0.2623.91, Windows 7 Professional 64bit (6.1, build 7601) - 49.0.2623.87 m. This did not occur on any device, 48.0.2564.116. I attach screenshots. Please check this.
,
Mar 18 2016
I reproduced this error on M49, but could not reproduce it on M50 or M51. So it looks like there was a 1-milestone regression. This problem should be fixed by M50. Try it out on Chrome Beta or Chrome Canary. If it doesn't work, please update the bug. Unfortunately, the ship has sailed for M49, so we won't be able to fix it there.
,
Mar 18 2016
OK. I understand for this. Thanks a lot. |
||||
►
Sign in to add a comment |
||||
Comment 1 by erikc...@chromium.org
, Mar 17 2016