# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- Nothing yet!

## [1.0.18] - 2025-10-16

### Fixed

- Keep focus in the `dialog` when focused element loses focus ([#18](https://github.com/tailwindlabs/elements/pull/18))

## [1.0.17] - 2025-10-08

### Fixed

- Ensure outside click behavior starts and stops on same element ([#17](https://github.com/tailwindlabs/elements/pull/17))

## [1.0.16] - 2025-10-02

### Fixed

- Anchor `ElPopover` to `opener` instead of first `invoker` ([#16](https://github.com/tailwindlabs/elements/pull/16))

## [1.0.15] - 2025-09-29

### Fixed

- Only set the `popover` attribute if it doesn't exist yet ([#15](https://github.com/tailwindlabs/elements/pull/15))

## [1.0.14] - 2025-09-25

### Fixed

- Fix duplicate event listeners on rapid unmount/remount ([#12](https://github.com/tailwindlabs/elements/pull/12), [#13](https://github.com/tailwindlabs/elements/pull/13))
- Fix janky UI when opening an anchored element ([#12](https://github.com/tailwindlabs/elements/pull/14))

## [1.0.13] - 2025-09-12

### Fixed

- Only wait for transitions, and not animations when closing dialogs ([#11](https://github.com/tailwindlabs/elements/pull/11))

## [1.0.12] - 2025-08-29

### Fixed

- Ensure `change` event is not fired multiple times in `el-autocomplete` after selecting an option ([#10](https://github.com/tailwindlabs/elements/pull/10))

## [1.0.11] - 2025-08-28

### Fixed

- Fix anchor positioning bug in Safari when re-opening a popover ([0e233cf](https://github.com/tailwindlabs/elements/commit/0e233cf0a174f08fd754d73a9bd9cb4715c90ac0))

## [1.0.10] - 2025-08-26

### Fixed

- Fix anchor positioning for RTL languages ([#8](https://github.com/tailwindlabs/elements/pull/8))
- Ensure first item is active, when command palette items are rendered lazily ([#9](https://github.com/tailwindlabs/elements/pull/9))

## [1.0.9] - 2025-08-19

### Fixed

- Consider `<option>` text content when filtering in autocomplete ([#7](https://github.com/tailwindlabs/elements/pull/7))

## [1.0.8] - 2025-08-13

### Added

- Include CHANGELOG.md in published npm package ([6396c2d](https://github.com/tailwindlabs/elements/commit/6396c2d))

### Fixed

- Ensure `required` on `el-select` triggers native form validation ([#6](https://github.com/tailwindlabs/elements/pull/6))

## [1.0.7] - 2025-08-06

### Fixed

- Prevent dialog from being cached as open with Turbo by removing open attribute on mount ([6f2caf8](https://github.com/tailwindlabs/elements/commit/6f2caf8))

## [1.0.6] - 2025-08-05

### Fixed

- Allow library to be compiled via Google Closure Compiler ([aac7143](https://github.com/tailwindlabs/elements/commit/aac714383f983b66ea37198c7a35d1d1b3270075))

## [1.0.5] - 2025-08-04

### Fixed

- Fix CSP compatibility for popover polyfill layer injection ([#5](https://github.com/tailwindlabs/elements/pull/5))
- Remove default padding from popover positioning logic ([7cd7a50](https://github.com/tailwindlabs/elements/commit/7cd7a50))

## [1.0.4] - 2025-07-31

### Added

- Add `cancel` event to `<el-dialog>` component that fires when escape key is pressed or outside click is used ([#3](https://github.com/tailwindlabs/elements/pull/3))

## [1.0.3] - 2025-07-30

### Fixed

- Remove unnecessary click event stopPropagation in popover elements that was preventing proper event bubbling ([#4](https://github.com/tailwindlabs/elements/pull/4))

## [1.0.2] - 2025-07-29

### Fixed

- Ensure dynamically added items for an autocomplete are accessible ([b3692ee](https://github.com/tailwindlabs/elements/commit/b3692ee378480ced23d900f6afbab403ab2a5e98))
- Skip hidden elements during keyboard navigation ([1b6ea84](https://github.com/tailwindlabs/elements/commit/1b6ea841434240a67bf4f4684858bc180a8446d1))

## [1.0.1] - 2025-07-28

### Fixed

- Fix popover anchor paddings to ensure items are not clipped by the viewport ([a485e75](https://github.com/tailwindlabs/elements/commit/a485e7589ec47c12d7b84c7195118812504fbc0d))
- Ensure dialogs are releasing their scroll lock when unmounted ([305e7b8](https://github.com/tailwindlabs/elements/commit/305e7b8ea93960449b6b604ec6a69b35c14a491d))

## [1.0.0] - 2025-07-25

### Added

- Everything!

[unreleased]: https://github.com/tailwindlabs/elements/compare/v1.0.18...HEAD
[1.0.18]: https://github.com/tailwindlabs/elements/compare/v1.0.17...v1.0.18
[1.0.17]: https://github.com/tailwindlabs/elements/compare/v1.0.16...v1.0.17
[1.0.16]: https://github.com/tailwindlabs/elements/compare/v1.0.15...v1.0.16
[1.0.15]: https://github.com/tailwindlabs/elements/compare/v1.0.14...v1.0.15
[1.0.14]: https://github.com/tailwindlabs/elements/compare/v1.0.13...v1.0.14
[1.0.13]: https://github.com/tailwindlabs/elements/compare/v1.0.12...v1.0.13
[1.0.12]: https://github.com/tailwindlabs/elements/compare/v1.0.11...v1.0.12
[1.0.11]: https://github.com/tailwindlabs/elements/compare/v1.0.10...v1.0.11
[1.0.10]: https://github.com/tailwindlabs/elements/compare/v1.0.9...v1.0.10
[1.0.9]: https://github.com/tailwindlabs/elements/compare/v1.0.8...v1.0.9
[1.0.8]: https://github.com/tailwindlabs/elements/compare/v1.0.7...v1.0.8
[1.0.7]: https://github.com/tailwindlabs/elements/compare/v1.0.6...v1.0.7
[1.0.6]: https://github.com/tailwindlabs/elements/compare/v1.0.5...v1.0.6
[1.0.5]: https://github.com/tailwindlabs/elements/compare/v1.0.4...v1.0.5
[1.0.4]: https://github.com/tailwindlabs/elements/compare/v1.0.3...v1.0.4
[1.0.3]: https://github.com/tailwindlabs/elements/compare/v1.0.2...v1.0.3
[1.0.2]: https://github.com/tailwindlabs/elements/compare/v1.0.1...v1.0.2
[1.0.1]: https://github.com/tailwindlabs/elements/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/tailwindlabs/elements/releases/tag/v1.0.0
