Skip to content

Materialize CSS Select Element not enabling #171

@cmcknight

Description

@cmcknight

I have two Select elements. The second Select is initially disabled until the value of the first element is changed to something other than 'all'. The behavior works as expected in vanilla HTML/JS with no MaterializeCSS. When using MaterailizeCSS, the disabled attribute is removed from the second Select but the control fails to become enabled.

Expected Behavior

My expectation is that when I remove the disabled attribute and/or set the disabled property to false on the second Select, it should become active.

Current Behavior

The second Select never becomes enabled when the value of the first select is changed from 'all' to something else.

Steps to Reproduce (for bugs)

  1. Click first Select
  2. Change value

Context

I am seeking to control the state of the second select based on the value in the first select.

Your Environment

Mac OS 11.5.2
RAM 32GB
Visual Studio Code
Materialize 1.1.0-alpha
Chrome v92.0.4515.159

Code Pen Link: link

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions