local_time
local_time copied to clipboard
Existing elements change to their raw form when rerendered
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.
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.