early-camera-41285
09/25/2022, 7:14 PMmysterious-toddler-20573
09/25/2022, 8:53 PMmysterious-toddler-20573
09/25/2022, 8:53 PMmysterious-toddler-20573
09/25/2022, 8:53 PMfuture-table-82610
09/26/2022, 12:54 AMcuddly-keyboard-70746
09/26/2022, 5:37 AMcuddly-keyboard-70746
09/26/2022, 5:38 AMmysterious-toddler-20573
09/26/2022, 1:10 PMsilly-soccer-20915
09/26/2022, 5:51 PMsilly-soccer-20915
09/26/2022, 5:55 PMsilly-soccer-20915
09/26/2022, 5:57 PMhx-trigger="change from:find input[type=checkbox], submit"
silly-soccer-20915
09/26/2022, 6:00 PMfuture-table-82610
09/27/2022, 12:50 AMhx-preserve
set, the field won't be replaced - however, if it currently has focus when the background update happens, the input element loses focus. For example, I have a page where a user could be typing away and when the page refreshes, the hx-preserve
correctly leaves their entered text, but if they aren't paying attention whatever they are currently typing gets lost (since there is no element with focus). It just causes a lot of user annoyance, and sometimes page jumping (ie if they hit the space bar).hundreds-camera-24900
09/27/2022, 1:43 AMhundreds-camera-24900
09/27/2022, 1:45 AMmysterious-toddler-20573
09/27/2022, 2:10 AMmysterious-toddler-20573
09/27/2022, 2:10 AMhx-preserve
and our focus codemysterious-toddler-20573
09/27/2022, 2:11 AMhundreds-camera-24900
09/27/2022, 2:13 AMhundreds-camera-24900
09/27/2022, 2:13 AMmysterious-toddler-20573
09/27/2022, 2:13 AMhundreds-camera-24900
09/27/2022, 2:13 AMmysterious-toddler-20573
09/27/2022, 2:14 AMinit
w/ the new content?hundreds-camera-24900
09/27/2022, 2:14 AMhundreds-camera-24900
09/27/2022, 2:15 AMhundreds-camera-24900
09/27/2022, 2:15 AMhundreds-camera-24900
09/27/2022, 2:16 AMhundreds-camera-24900
09/27/2022, 2:16 AMmysterious-toddler-20573
09/27/2022, 2:16 AMhundreds-camera-24900
09/27/2022, 2:16 AM