From 3710974281679689e834c4ef6dbb7d31509fd977 Mon Sep 17 00:00:00 2001 From: Jerald Vinfrank <46400789+JeraldVin@users.noreply.github.com> Date: Wed, 8 Feb 2023 23:38:07 +0530 Subject: [PATCH 1/2] fix: add note about html attribute usage add note about html attribute usage for focusin and focusout events, that they work --- 2-ui/4-forms-controls/2-focus-blur/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/4-forms-controls/2-focus-blur/article.md b/2-ui/4-forms-controls/2-focus-blur/article.md index c253dc11d4..eb68c9fa7e 100644 --- a/2-ui/4-forms-controls/2-focus-blur/article.md +++ b/2-ui/4-forms-controls/2-focus-blur/article.md @@ -196,7 +196,7 @@ This will work: Second, there are `focusin` and `focusout` events -- exactly the same as `focus/blur`, but they bubble. -Note that they must be assigned using `elem.addEventListener`, not `on`. +Note that they must be assigned using `elem.addEventListener` or HTML attribute `on`, not `elem.on`. So here's another working variant: From 2b53b8577a474b71eebcaa5b9a51bd8b054860b3 Mon Sep 17 00:00:00 2001 From: Jerald Vinfrank <46400789+JeraldVin@users.noreply.github.com> Date: Wed, 8 Feb 2023 23:41:35 +0530 Subject: [PATCH 2/2] chore: add '-' --- 2-ui/4-forms-controls/2-focus-blur/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/4-forms-controls/2-focus-blur/article.md b/2-ui/4-forms-controls/2-focus-blur/article.md index eb68c9fa7e..4e2be8d12b 100644 --- a/2-ui/4-forms-controls/2-focus-blur/article.md +++ b/2-ui/4-forms-controls/2-focus-blur/article.md @@ -196,7 +196,7 @@ This will work: Second, there are `focusin` and `focusout` events -- exactly the same as `focus/blur`, but they bubble. -Note that they must be assigned using `elem.addEventListener` or HTML attribute `on`, not `elem.on`. +Note that they must be assigned using `elem.addEventListener` or HTML-attribute `on`, not `elem.on`. So here's another working variant: