dohomi/react-hook-form-mui

Disabled doesn't work on SelectElement

Closed this issue · 0 comments

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

With using the prop disabled on an option, the option does not display as disable and is still clickable.
options={[
{ label: '1', id: 1, disabled: true },
{ label: '2', id: 2 },
]}

Expected behavior 🤔

the option that has the prop past disabled as in the docs, is disabled

Steps to reproduce 🕹

Steps:

  1. Add SelectElement
  2. Past options, that include a disabled prop set to true
  3. Click SelectElement
  4. See issue, no disabled option