5 ms·
I think a directive is actually a better idea. With a composable I basically just accept a ref of the target element and set up the event handlers directly on i
by runarberg 3y ago
I think a directive is actually a better idea. With a composable I basically just accept a ref of the target element and set up the event handlers directly on it (with useEventListener composables).