You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pretty minor bug, but I saw it and thought, this would be of interest and which might be fixed easily.
Disabled options in a selection field (when using _includes/forms/select) are not clickable (as expected), but they look the exact same as enabled options when the select field has been focussed before.
Steps to reproduce
Extend craft\base\Field by adding a new field class.
Implement getInpuHtml() method of the new field class as follows:
Register our new field type (as usually in the init() method of a module or plugin class hooking into the registerFieldTypes event).
Add new field in Craft CP (Settings > Fields > New) and select our new field type.
Also ensure to have that new field added to a entry type's field group.
Now, go add a new entry and click on the selection field to show all options.
Everything's fine, the disabled options are grey.
Click anywhere else to close the dropdpwn. But only once to not lose the field focus.
Click again the selection field to open all options.
→ Et voilá. The disabled options are not grey but black as the rest.
The disabled options are not selectable, though. So, functionally everything is okay. It's just a visual (CSS styling) thing.
Additional info
Tested in Firefox version: 67 and 68
Craft version: 3.1.33
PHP version: 7.2.17
Database driver & version: MariaDB 10.3.13
Plugins & versions: Should not infect the mentioned bug, but in my project I have currently installed and active: Redactor, SEO, Super Table, schema and a custom plugin.
The text was updated successfully, but these errors were encountered:
Description
Pretty minor bug, but I saw it and thought, this would be of interest and which might be fixed easily.
Disabled options in a selection field (when using
_includes/forms/select
) are not clickable (as expected), but they look the exact same as enabled options when the select field has been focussed before.Steps to reproduce
craft\base\Field
by adding a new field class.getInpuHtml()
method of the new field class as follows:init()
method of a module or plugin class hooking into theregisterFieldTypes
event).The disabled options are not selectable, though. So, functionally everything is okay. It's just a visual (CSS styling) thing.
Additional info
The text was updated successfully, but these errors were encountered: