local_time icon indicating copy to clipboard operation
local_time copied to clipboard

Existing elements change to their raw form when rerendered

Open northeastprince opened this issue 2 years ago • 1 comments

Time elements are only processed when a new node is added, which leaves existing elements in their raw form when using something like Turbo page refreshes with morphing.

northeastprince avatar Nov 30 '23 15:11 northeastprince

Yes, we should fix this at the library: local_time should monitor mutations in the content so that it can reprocess the value when those happens. A workaround right now is flagging these tags with data-turbo-permanent, so that they don't get touch by morphing, and remain fully managed by JS.

Thanks for reporting.

jorgemanrubia avatar Nov 30 '23 16:11 jorgemanrubia