feat(example:todomvc): add editing support
- implement "onfocusout" handler - set autofocus - handle enter, escape and tab on a todo item - make the `<pre>` element between todo list items of margin 0 to be unnoticable
This commit is contained in:
1 parent
02d995e3f7
commit
9849f68f25
5 files changed
+27
-10
No files matched your search
@@ -91,6 +91,9 @@ pub mod on {
|
||||
/// onfocus
|
||||
onfocus
|
||||
|
||||
// onfocusout
|
||||
onfocusout
|
||||
|
||||
/// onblur
|
||||
onblur
|
||||
];
|
||||
@@ -1092,7 +1095,7 @@ pub(crate) fn _event_meta(event: &UserEvent) -> (bool, EventPriority) {
|
||||
"keydown" | "keypress" | "keyup" => (true, High),
|
||||
|
||||
// Focus
|
||||
"focus" | "blur" => (true, Low),
|
||||
"focus" | "blur" | "focusout" => (true, Low),
|
||||
|
||||
// Form
|
||||
"change" | "input" | "invalid" | "reset" | "submit" => (true, Medium),
|
||||
|
||||
Reference in new issue
Block a user