Disabled select element shown as enabled?, Element still not clickable. |
Disabled select element shown as enabled?, Element still not clickable. |
CharlesEF |
Nov 12 2021, 05:06 PM
Post
#1
|
Programming Fanatic Group: Members Posts: 1,984 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Hi All,
I'm wondering if anyone else has noticed this. I use FF 94.0.1 and see that disabled select elements are shown as enabled (no grey background), but still not clickable. Enabled select elements are shown as disabled (with grey background), but are clickable. It appears MS Edge does the same. Is this the new normal? Or, have I gone blind? Thanks for any feedback, Charles |
Christian J |
Nov 12 2021, 07:08 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,722 Joined: 10-August 06 Member No.: 7 |
That sounds odd. Are you seeing this on simple static HTML, without any CSS applied? This is how my browsers look:
CODE <select> <option>enabled</option> </select> <select disabled="disabled"> <option>disabled</option> </select> FF 94.01 enabled: gray text and background disabled: somewhat lighter gray text and background Edge 95.0.x enabled: black text on white background disabled: light gray text on light gray background Pale Moon and K-Meleon do use white background on disabled SELECTs though. |
CharlesEF |
Nov 12 2021, 07:32 PM
Post
#3
|
Programming Fanatic Group: Members Posts: 1,984 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
I used your code to create a static HTML page, no CSS or Javascript. I see 2 select drop downs side by side. The 1st select shows 'enabled' but it does have a gray background. The 2nd select shows 'disabled' but has no gray background. This was using FF 94.0.1
MS Edge v95.0.1020.44 appears to show the enabled select, or maybe the gray is lighter, I can't tell with my bad eyes for sure. The disabled select has no gray background, that I can see. Could this be because my Windows is a preview version? I can't upgrade to Win11 because it doesn't support multi-core processors yet. This post has been edited by CharlesEF: Nov 12 2021, 07:35 PM |
Christian J |
Nov 12 2021, 08:00 PM
Post
#4
|
. Group: WDG Moderators Posts: 9,722 Joined: 10-August 06 Member No.: 7 |
The disabled select has no gray background, that I can see. You're not using the same light gray for the browser default background color by chance? QUOTE Could this be because my Windows is a preview version? No idea, I'm still on Win10, no preview anything. Tried to attach a screenshot, but now I couldn't get neither PNG, JPG nor GIF to work. |
CharlesEF |
Nov 12 2021, 08:33 PM
Post
#5
|
Programming Fanatic Group: Members Posts: 1,984 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Even when I use my program I don't overwrite the browser defaults, as far as background color. I've always seen a disabled select with a gray background, until now.
Since I live alone I can't just ask someone to look at it. I guess I'll just wait until someone visits and ask them to look at it. Thanks for the feedback. This post has been edited by CharlesEF: Nov 12 2021, 08:34 PM |
Lo-Fi Version | Time is now: 26th September 2024 - 12:41 AM |