You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using confirm.require, the "target" attribute expects an object of type HTMLElement. However, the event emitted by the PrimeVue button is of type MouseEvent, and event.currentTarget is not of type HTMLElement. If we refer to the example from the PrimeVue documentation, we encounter a type error:
Argument of type 'MouseEvent' is not assignable to parameter of type '{ currentTarget: HTMLElement; }'.
Types of property 'currentTarget' are incompatible.
Type 'EventTarget | null' is not assignable to type 'HTMLElement'.
Type 'null' is not assignable to type 'HTMLElement'.ts-plugin(2345)
(parameter) $event: MouseEvent
(parameter) $event: MouseEvent
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Problem Description:
When using
confirm.require
, the "target" attribute expects an object of typeHTMLElement
. However, the event emitted by the PrimeVue button is of typeMouseEvent
, andevent.currentTarget
is not of typeHTMLElement
. If we refer to the example from the PrimeVue documentation, we encounter a type error:Here is an example to reproduce the error:
Online Example:
Example StackBlitz
Please investigate and correct this issue to ensure proper compatibility between event types.
Beta Was this translation helpful? Give feedback.
All reactions