Files
integreat/resources
Bryce 379bfa78f7 feat(ssr): add clear button to typeahead
The single typeahead had no visible way to unset a selection — clearing
was only possible via the undiscoverable backspace keybinding.

Adds an x icon on the right side of the field, shown only when a value is
selected. It reuses the same `value = {value: '', label: ''}` assignment
the existing backspace handler uses, so it rides the already-wired clear
path: the hidden input's $watch dispatches `change` (driving htmx filter
refetches) and `x-modelable "value.value"` propagates the empty value to
any parent scope bound via x-model (driving dependent fetches such as the
transaction-rule Account -> Location and Client -> Bank Account chains).

The icon is a plain div with tabindex="-1" and aria-hidden, so it stays
out of the tab order; @click.prevent.stop keeps the click from bubbling
to the wrapping anchor and popping the dropdown. Matches the clear
affordance multi-typeahead already had.

Rebuilds output.css for the new dark:hover:text-gray-200 utility.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 21:32:25 -07:00
..
2020-07-03 17:50:37 -07:00
2023-09-28 20:41:00 -07:00
2023-04-18 11:32:58 -07:00
2019-01-16 21:30:39 -08:00
2026-06-04 22:59:51 -07:00
2026-06-04 22:56:01 -07:00
2018-09-20 18:12:40 -07:00
2018-09-20 18:12:40 -07:00
2018-07-14 21:13:22 -07:00
2019-04-12 10:42:18 -07:00
2026-05-27 08:42:42 -07:00
2019-05-19 08:06:21 -07:00
2018-09-20 18:12:40 -07:00
2024-10-16 15:37:22 -07:00
2026-05-26 21:56:58 -07:00
2020-08-01 17:07:17 -07:00
2020-08-01 17:07:17 -07:00
2020-08-01 17:07:17 -07:00
2018-09-20 18:12:40 -07:00
2018-08-16 21:04:55 -07:00
2020-05-16 16:08:17 -07:00
2020-05-16 16:08:17 -07:00
2020-08-22 17:14:30 -07:00
2022-10-15 10:58:08 -07:00
2025-02-03 21:06:28 -08:00
2026-05-16 00:36:16 -07:00
2020-08-22 17:14:30 -07:00
2020-05-30 10:31:46 -07:00
2020-11-16 18:40:52 -08:00