File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -101,13 +101,17 @@ function hydrateInputs(): void {
101101 </button>` ,
102102 ) ;
103103
104- $ ( ".badgeSelectionItem" ) . on ( "click" , ( { currentTarget } ) => {
105- const selectionId = $ ( currentTarget ) . attr ( "selection-id" ) as string ;
106- currentSelectedBadgeId = parseInt ( selectionId , 10 ) ;
107-
108- badgeIdsSelect ?. qsa ( ".badgeSelectionItem" ) ?. removeClass ( "selected" ) ;
109- $ ( currentTarget ) . addClass ( "selected" ) ;
110- } ) ;
104+ badgeIdsSelect
105+ ?. qsa ( ".badgeSelectionItem" )
106+ ?. on ( "click" , ( { currentTarget } ) => {
107+ const selectionId = ( currentTarget as HTMLElement ) . getAttribute (
108+ "selection-id" ,
109+ ) as string ;
110+ currentSelectedBadgeId = parseInt ( selectionId , 10 ) ;
111+
112+ badgeIdsSelect ?. qsa ( ".badgeSelectionItem" ) ?. removeClass ( "selected" ) ;
113+ ( currentTarget as HTMLElement ) . classList . add ( "selected" ) ;
114+ } ) ;
111115
112116 indicators . forEach ( ( it ) => it . hide ( ) ) ;
113117}
You can’t perform that action at this time.
0 commit comments