From f526c713caa6213da16ff22af7a90323d6315677 Mon Sep 17 00:00:00 2001 From: Chris Nelson Date: Sat, 10 Aug 2024 12:57:25 -0400 Subject: [PATCH] better README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b87489..8a50895 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ Alternatively, the `list` attribute may be given the DOM id of a list outside th - `autocomplete-search` sent when the value of the input changes and is greater than the `minlength`, debounced by the specified interval. - `autocomplete-commit` sent when an item is selected either by pressing Enter or clicking an option +- `autocomplete-close` sent when the element is open and loses focus, on by user pressing Escape ## Attributes @@ -54,7 +55,7 @@ Alternatively, the `list` attribute may be given the DOM id of a list outside th - `debounce` The time in milliseconds to debounce before sending an `autocomplete-search` event when the user enters text into the input - `value` The value which will be initially used to populate the `FormData` of the associated form. - `searchValue` The value which will initially be used to populate the search input. -- `state` +- `open` The element will start in the Open mode display the text input ## Styling the selected option