Description
Which @angular/* package(s) are the source of the bug?
zone.js, Don't known / other
Is this a regression?
Yes
Description
Encountering an "undefined" error in browser console under the following conditions:
Angular 18.0.3, UIkit 3.21.5
-
Create a button with a UIkit tool tip
-
In ngOnInit, disable the tool tip programmatically using preventDefault in event handler for beforeshow for UIkit uk-tooltip elements
When rendered in the browser, each time a user hovers over the button, an "undefined" error is generated in the borwser console.
Could not reproduce using UIkit in CodePen:
https://codepen.io/jsiwek/pen/vYwJeOK
Created a Stackblitz/Angular demo of the issue:
https://stackblitz.com/edit/stackblitz-starters-cyagxs
The behavior in the Stackblitz demo appears identical to what I'm seeing in my development environment.
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-cyagxs
Please provide the exception or error you saw
zone__js.js?v=59c4960d:1792 undefined
api.onUnhandledError @ zone__js.js?v=59c4960d:1792
handleUnhandledRejection @ zone__js.js?v=59c4960d:1813
api.microtaskDrainDone @ zone__js.js?v=59c4960d:1807
drainMicroTaskQueue @ zone__js.js?v=59c4960d:487
invokeTask @ zone__js.js?v=59c4960d:400
ZoneTask.invoke @ zone__js.js?v=59c4960d:386
data.args.<computed> @ zone__js.js?v=59c4960d:1378
setTimeout (async)
scheduleTask @ zone__js.js?v=59c4960d:1380
scheduleTask @ zone__js.js?v=59c4960d:316
scheduleTask @ zone__js.js?v=59c4960d:171
scheduleMacroTask @ zone__js.js?v=59c4960d:189
scheduleMacroTaskWithCurrentZone @ zone__js.js?v=59c4960d:556
(anonymous) @ zone__js.js?v=59c4960d:1407
proto.<computed> @ zone__js.js?v=59c4960d:795
show @ uikit.min.js:1
focus pointerenter pointerdown @ uikit.min.js:1
invokeTask @ zone__js.js?v=59c4960d:326
runTask @ zone__js.js?v=59c4960d:136
invokeTask @ zone__js.js?v=59c4960d:397
invokeTask @ zone__js.js?v=59c4960d:900
globalCallback @ zone__js.js?v=59c4960d:921
globalZoneAwareCallback @ zone__js.js?v=59c4960d:946
Please provide the environment you discovered this bug in (run ng version
)
Angular CLI: 18.0.3
Node: 18.20.3
Package Manager: npm 10.2.3
OS: linux x64
Angular: 18.0.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1800.3
@angular-devkit/build-angular 18.0.3
@angular-devkit/core 18.0.3
@angular-devkit/schematics 18.0.3
@angular/cli 18.0.3
@schematics/angular 18.0.3
rxjs 7.8.1
typescript 5.4.5
zone.js 0.14.7
~/projects/stackblitz-starters-cyagxs
Anything else?
No response