cold-computer-43196
10/31/2022, 9:55 PMrich-autumn-98740
10/31/2022, 10:02 PMhx-push-url
doesn't work well with `loading-states`: if I go backwards (push back button) all elements with data-loading-disable
become disabled
I assume it's because loading-states
first adds disabled attribute and only then hx-push-url
captures current DOM (together with disabled attribute)
what do you suggest to do in this case?ripe-action-67367
10/31/2022, 10:03 PMdata-loading-delay
attribute with a tiny value (like 5 or maybe even less)ripe-action-67367
10/31/2022, 10:04 PMbody
rich-autumn-98740
10/31/2022, 10:11 PMripe-action-67367
10/31/2022, 10:13 PMrich-autumn-98740
10/31/2022, 10:13 PMfreezing-waitress-26396
10/31/2022, 10:14 PMripe-action-67367
10/31/2022, 10:16 PMrich-autumn-98740
10/31/2022, 10:17 PMmysterious-toddler-20573
10/31/2022, 10:18 PMmysterious-toddler-20573
10/31/2022, 10:18 PMmysterious-toddler-20573
10/31/2022, 10:19 PMripe-action-67367
10/31/2022, 10:26 PMhtmx:afterOnLoad
which happens after response is processed (including interactions with history api). Probably, should have used htmx:beforeOnLoad
insteadrich-autumn-98740
10/31/2022, 10:27 PMripe-action-67367
10/31/2022, 10:28 PMripe-action-67367
10/31/2022, 10:28 PMripe-action-67367
10/31/2022, 10:28 PMrich-autumn-98740
10/31/2022, 10:29 PMrich-autumn-98740
10/31/2022, 10:29 PMhtmx:afterOnLoad
to htmx:beforeOnLoad
🙂rich-autumn-98740
10/31/2022, 10:30 PMripe-action-67367
10/31/2022, 10:30 PMripe-action-67367
10/31/2022, 10:30 PMwhite-motorcycle-95262
11/01/2022, 12:49 AMmysterious-toddler-20573
11/01/2022, 12:59 AMgreen-keyboard-40232
11/01/2022, 4:10 AMripe-action-67367
11/01/2022, 6:03 AMprehistoric-wolf-75047
11/01/2022, 7:02 AM<input type="text" id="stable" @focus="$event.target.select()" hx-post="" hx-trigger="blur">
The selection state is not preserved. It only works when this snippet is used: https://github.com/bigskysoftware/htmx/issues/343#issue-796944483ripe-action-67367
11/01/2022, 7:15 AMprehistoric-wolf-75047
11/01/2022, 7:49 AM