|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to this project will be documented in this file. |
| 4 | + |
| 5 | +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 | +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | + |
| 8 | +## [Unreleased - React] |
| 9 | + |
| 10 | +### Fixes |
| 11 | + |
| 12 | +- Ensure that you can't use Enter to invoke the Switch |
| 13 | +- Fix outside click refocus bug ([#114](https://github.com/tailwindlabs/headlessui/pull/114)) |
| 14 | +- Prevent scrolling when refocusing items |
| 15 | +- Ensure `Switch` has `type="button"` ([#192](https://github.com/tailwindlabs/headlessui/pull/192)) |
| 16 | +- Fix `useId()` hook returning `undefined` on the client |
| 17 | +- Fix `disabled` not working when inside a disabled fieldset ([#202](https://github.com/tailwindlabs/headlessui/pull/202)) |
| 18 | +- Trigger "outside click" behaviour on mousedown ([#212](https://github.com/tailwindlabs/headlessui/pull/212)) |
| 19 | +- Ensure the `active` MenuItem is scrolled into view |
| 20 | +- Ensure valid Menu accessibility tree ([#228](https://github.com/tailwindlabs/headlessui/pull/228)) |
| 21 | + |
| 22 | +### Added |
| 23 | + |
| 24 | +- Add Transition events (`beforeEnter`, `afterEnter`, `beforeLeave` and `afterLeave`) ([#57](https://github.com/tailwindlabs/headlessui/pull/57)) |
| 25 | +- Add render features + render strategy (`static` and `unmount={true | false}`) ([#106](https://github.com/tailwindlabs/headlessui/pull/106)) |
| 26 | + - Also changes the API of Transition component. |
| 27 | + - We will now always render a `div` by default (unless you change this using the `as={...}` prop). |
| 28 | + - The render function prop doesn't expose a `ref` anymore. |
| 29 | + - Adds `unmount` prop to the `Transition` and `Transition.Child` components. |
| 30 | +- Add displayName to all contexts ([#175](https://github.com/tailwindlabs/headlessui/pull/175)) |
| 31 | +- Add `disabled` prop to `Listbox` itself, instead of the `Listbox.Button` ([#229](https://github.com/tailwindlabs/headlessui/pull/229)) |
| 32 | + |
| 33 | +## [Unreleased - Vue] |
| 34 | + |
| 35 | +### Fixes |
| 36 | + |
| 37 | +- Ensure that you can't use Enter to invoke the Switch |
| 38 | +- Fix outside click refocus bug ([#114](https://github.com/tailwindlabs/headlessui/pull/114)) |
| 39 | +- Prevent scrolling when refocusing items |
| 40 | +- Ensure `Switch` has `type="button"` ([#192](https://github.com/tailwindlabs/headlessui/pull/192)) |
| 41 | +- Added `emits` property to Vue components ([#199](https://github.com/tailwindlabs/headlessui/pull/199)) |
| 42 | +- Fix `disabled` not working when inside a disabled fieldset ([#202](https://github.com/tailwindlabs/headlessui/pull/202)) |
| 43 | +- Trigger "outside click" behaviour on mousedown ([#212](https://github.com/tailwindlabs/headlessui/pull/212)) |
| 44 | +- Ensure the `active` MenuItem is scrolled into view |
| 45 | +- Ensure valid Menu accessibility tree ([#228](https://github.com/tailwindlabs/headlessui/pull/228)) |
| 46 | + |
| 47 | +### Added |
| 48 | + |
| 49 | +- Add render features + render strategy (`static` and `unmount={true | false}`) ([#106](https://github.com/tailwindlabs/headlessui/pull/106)) |
| 50 | +- Add `disabled` prop to `Listbox` itself, instead of the `ListboxButton` ([#229](https://github.com/tailwindlabs/headlessui/pull/229)) |
| 51 | + |
| 52 | +## [@headlessui/react@v0.2.0] - 2020-10-06 |
| 53 | + |
| 54 | +- Add `Listbox` component |
| 55 | +- Add `Switch` component |
| 56 | + |
| 57 | +## [@headlessui/vue@v0.2.0] - 2020-10-06 |
| 58 | + |
| 59 | +- Add `Listbox` component |
| 60 | +- Add `Switch` component |
| 61 | + |
| 62 | +## [@headlessui/react@v0.1.3] - 2020-09-29 |
| 63 | + |
| 64 | +- Fix outside click behaviour. If you had multiple menu's, when menu 1 is open, menu 2 is closed and you click on menu button 2 it will open both menu's. This is now fixed. |
| 65 | +- Ensure when using keyboard navigation we prevent the default behaviour. |
| 66 | + |
| 67 | +## [@headlessui/vue@v0.1.3] - 2020-09-29 |
| 68 | + |
| 69 | +- Fix an issue where you couldn't click on menu items that were links. |
| 70 | +- Fix outside click behaviour. If you had multiple menu's, when menu 1 is open, menu 2 is closed and you click on menu button 2 it will open both menu's. This is now fixed. |
| 71 | +- Ensure when using keyboard navigation we prevent the default behaviour. |
| 72 | + |
| 73 | +## [@headlessui/react@v0.1.2] - 2020-09-25 |
| 74 | + |
| 75 | +- Add tests for `onClick` handling that wasn't working properly in @headlessui/vue to ensure behavior stays the same in this library |
| 76 | +- Don't pass `disabled` prop through to children, only add `aria-disabled` |
| 77 | + |
| 78 | +## [@headlessui/vue@v0.1.2] - 2020-09-25 |
| 79 | + |
| 80 | +- Fix issue where button `MenuItem` instances didn't properly fire click events |
| 81 | +- Don't pass `disabled` prop through to children, only add `aria-disabled` |
| 82 | + |
| 83 | +## [@headlessui/react@v0.1.1] - 2020-09-24 |
| 84 | + |
| 85 | +- Initial release |
| 86 | + |
| 87 | +## [@headlessui/vue@v0.1.1] - 2020-09-24 |
| 88 | + |
| 89 | +- Initial release |
| 90 | + |
| 91 | +[unreleased - react]: https://github.com/tailwindlabs/headlessui/compare/@headlessui/[email protected] |
| 92 | +[unreleased - vue]: https://github.com/tailwindlabs/headlessui/compare/@headlessui/[email protected] |
| 93 | +[@headlessui/[email protected]]: https://github.com/tailwindlabs/headlessui/compare/@headlessui/[email protected]...@headlessui/[email protected] |
| 94 | +[@headlessui/[email protected]]: https://github.com/tailwindlabs/headlessui/compare/@headlessui/[email protected]...@headlessui/[email protected] |
| 95 | +[@headlessui/[email protected]]: https://github.com/tailwindlabs/headlessui/compare/@headlessui/[email protected]...@headlessui/[email protected] |
| 96 | +[@headlessui/[email protected]]: https://github.com/tailwindlabs/headlessui/compare/@headlessui/[email protected]...@headlessui/[email protected] |
| 97 | +[@headlessui/[email protected]]: https://github.com/tailwindlabs/headlessui/compare/@headlessui/[email protected]...@headlessui/[email protected] |
| 98 | +[@headlessui/[email protected]]: https://github.com/tailwindlabs/headlessui/compare/@headlessui/[email protected]...@headlessui/[email protected] |
| 99 | +[@headlessui/[email protected]]: https://github.com/tailwindlabs/headlessui/releases/tag/@headlessui/[email protected] |
| 100 | +[@headlessui/[email protected]]: https://github.com/tailwindlabs/headlessui/releases/tag/@headlessui/[email protected] |
0 commit comments