Radio button selected through java script doesn't show as selected on the html even when code shows checked = "checked''
Categories
(Firefox :: Untriaged, defect)
Tracking
()
People
(Reporter: saurabh.katiyar, Unassigned, NeedInfo)
Details
Attachments
(1 file)
799.80 KB,
image/png
|
Details |
Steps to reproduce:
On page load we are getting data and based on the data the radio is dynamically selected.
We are setting checked = "checked" however the radio on the ui comes unselected.
This issue is specific to firefox version 120.0.1. It was working perfectly fine in older fire fox versions as well as in chrome and safari
Actual results:
Though the radio is being selected dynamically and the same shows in the code, however the browser doesn't reflect the same on the UI
Expected results:
When input element for radio has checked = "checked" the browser should interpret it as as selected ans show the radio selected on the UI.
Comment 1•1 year ago
|
||
Not a security bug so unhiding.
The screenshot shows that your <input type=radio>
is opacity: 0
, so it isn't visible.
The thing on the screen that looks like a radio button must be something else, and presumably the issue is in whatever code is trying to mimic the radio button with whatever that is.
If you can link to a live example where you see this problem, we can investigate further, but we'd really need more information in order to make any changes in Firefox.
If you can't share a live link (because it's on an intranet or requires a login or whatever), it may also be helpful to run mozregression
- https://mozilla.github.io/mozregression/ - to find out exactly what change to Firefox broke your site. And/or perhaps it's possible to save to disk
the HTML and CSS and extract a minimal testcase, though that may be non-trivial depending on the site.
Comment 2•1 year ago
|
||
Closing as Resolved: Incomplete due to no update from the reporter. If anyone can still reproduce this issue and provide the requested info, please feel free to reopen the bug. Thanks!
Description
•