File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 31
31
aria-selected ={active ? ' true' : ' false' }
32
32
tabindex ={active || forceAccessible ? ' 0' : ' -1' }
33
33
{href }
34
- on:click ={handleClick }
34
+ on:click ={(event ) =>
35
+ ! event .defaultPrevented && instance && instance .handleClick ()}
35
36
{...internalAttrs }
36
37
{...exclude ($$restProps , [' content$' , ' tabIndicator$' ])}
37
38
>
84
85
import type { TabIndicatorComponentDev } from ' @smui/tab-indicator' ;
85
86
import TabIndicator from ' @smui/tab-indicator' ;
86
87
87
- import type { SMUITabAccessor } from ' ./Tab.types' ;
88
+ import type { SMUITabAccessor } from ' ./Tab.types.js ' ;
88
89
89
90
const forwardEvents = forwardEventsBuilder (get_current_component ());
90
91
182
183
};
183
184
});
184
185
185
- function handleClick(event : PointerEvent ) {
186
- if (! event .defaultPrevented ) {
187
- instance ?.handleClick ();
188
- }
189
- }
190
-
191
186
function hasClass(className : string ) {
192
187
return className in internalClasses
193
188
? internalClasses [className ]
You can’t perform that action at this time.
0 commit comments