{"id":8668,"date":"2024-07-01T08:11:36","date_gmt":"2024-07-01T07:11:36","guid":{"rendered":"https:\/\/solidt.eu\/site\/?p=8668"},"modified":"2024-07-01T08:11:37","modified_gmt":"2024-07-01T07:11:37","slug":"angular-click-event-not-fired","status":"publish","type":"post","link":"https:\/\/solidt.eu\/site\/angular-click-event-not-fired\/","title":{"rendered":"Angular click event not fired"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-david-votrubec-notes-about-programming wp-block-embed-david-votrubec-notes-about-programming\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"L3rIuV05s5\"><a href=\"https:\/\/blog.davidjs.com\/2019\/04\/angular-click-not-fired-and-how-to-fix-it\/\">Angular (click) not fired and how to fix it<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Angular (click) not fired and how to fix it&#8221; &#8212; David Votrubec | Notes about programming\" src=\"https:\/\/blog.davidjs.com\/2019\/04\/angular-click-not-fired-and-how-to-fix-it\/embed\/#?secret=w2cImOl2Mg#?secret=L3rIuV05s5\" data-secret=\"L3rIuV05s5\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>TL;DR<\/p>\n\n\n\n<p>Use mousedown event, because the mousedown triggers a view (dom element) update. And the mousup event never gets fired, so the click event never gets fired.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TL;DR Use mousedown event, because the mousedown triggers a view (dom element) update. And the mousup event never gets fired, so the click event never gets fired.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8668","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/8668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/comments?post=8668"}],"version-history":[{"count":1,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/8668\/revisions"}],"predecessor-version":[{"id":8669,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/8668\/revisions\/8669"}],"wp:attachment":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/media?parent=8668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/categories?post=8668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/tags?post=8668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}