Files
headlessui/packages
Robin Malfait d874e561a1 Ensure disabled="false" is not incorrectly passed to the underlying DOM Node (#2138)
* do not add `disabled` prop to `MenuItem`

We use the `aria-disabled` instead so that you can still style it and
that assistive techonology can read the disabled state. If it has the
`disabled` prop itself, then often you can't interact with it at all.

We also default to `disabled = false`, which means that the default
behaviour was a `<element disabled="false">` in the DOM. If you then
have CSS like `[disabled] { opacity: 0.8; }` then this also applies to
the elements with `disabled="false"`.

Fixes: #2134

* ensure Vue playground still works

* ensure Vue overrides the `onXXX` correctly

* update changelog
2023-01-02 16:53:35 +01:00
..