Skip to content

Latest commit

 

History

History
83 lines (47 loc) · 2.62 KB

changelog.md

File metadata and controls

83 lines (47 loc) · 2.62 KB

Changelog

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

[9.2.1] - 2024-04-19

Added

  • Export autocomplete.css in package.json (#113)

[9.2.0] - 2024-04-02

Added

  • Provide ESM builds so that modern bundlers and frameworks can take advantage and use the package as ESM instead of CommonJS or UMD.

[9.1.2] - 2023-11-08

Fixed

  • Use textContent for CSP compliance (#111)

[9.1.1] - 2023-10-17

Fixed

  • Allows postcss-import to know which default file to use (#109)

[9.1.0] - 2023-08-23

Fixed

  • Detach custom autocomplete container during plugin initialization if it was already appended to the DOM (issue #103).

[9.0.0] - 2023-07-22

Added

  • Improved performance during keyboard navigation (up/down keys) in the autocomplete dropdown. Instead of re-rendering suggestions, the widget now only updates the relevant element attributes.

Breaking Changes

  • Due to the above optimization, the render and renderGroup functions will now only be invoked on the initial render and when text in the autocomplete changes.
  • Modified the preventSubmit option, which now accepts enum values for more granular control. Previously a boolean, it now accepts Never (form submission is not prevented), Always (form submission is always prevented), and OnSelect (form submission is only prevented when a value is selected in dropdown).

[8.0.4] - 2023-06-13

Fixed

  • Resolved an issue where the autocomplete widget was erroneously re-displayed after selection on Firefox Mobile Browser.

[8.0.3] - 2023-02-14

Added

  • Added a new parameter to AutocompleteResult that allows to manually display autocomplete or trigger updates without an event like 'click' or 'keydown'

Fixed

  • Rollup configuration

[8.0.0] - 2023-02-07

Added

  • Added a changelog to simplify the process of tracking updates.
  • Changed the event triggering the autocomplete widget from keyup to input, resolving issues listed below.
  • The widget can now be displayed on mouse clicks when the click option is correctly configured and passed to autocomplete.

Removed

  • keysToIgnore property is removed and the new keyup property should be used instead.

Fixed

  • The mouse paste operation now activates the autocomplete feature as intended.
  • The autocomplete widget is now correctly activated when input values are altered on mobile devices without using the virtual keyboard (by voice or auto-correction).
  • The widget will now properly reattach to its original parent container when a custom container is provided for autocomplete, instead of attaching to the body (issue #83)