1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-08-24 14:42:56 +02:00
This commit is contained in:
Morris Brodersen
2022-08-06 16:59:51 +02:00
parent ba40eaf604
commit 18875d40c2

View File

@@ -379,9 +379,9 @@ as this may hurt performance and will likely break important functionality
which browsers have already been optimizing for decades: which browsers have already been optimizing for decades:
- `<a>`, `<button>`, `<input>`, etc. may lose focus. - `<a>`, `<button>`, `<input>`, etc. may lose focus.
- Form inputs may lose data on re-render. - Form inputs may lose data.
- Text selection may be reset on re-render. - Text selection may be reset.
- CSS transitions won't work if you re-render a large chunk of HTML instead of toggling a class. - CSS transitions may not work correctly.
- Event listeners may need to be reattached. - Event listeners may need to be reattached.
As seen in [3.2.1.](#321-mount-functions), rendering is therefore split into As seen in [3.2.1.](#321-mount-functions), rendering is therefore split into