File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -783,17 +783,17 @@ const Hooks = {
783
783
} , 0 ) ;
784
784
}
785
785
786
- updateStrength ( ) ;
786
+ // updateStrength();
787
787
} ;
788
788
789
789
input . addEventListener ( "input" , handleInput ) ;
790
- input . addEventListener ( "keyup" , updateStrength ) ;
790
+ // input.addEventListener("keyup", updateStrength);
791
791
792
792
// Initial formatting and update
793
793
if ( input . value ) {
794
794
input . value = formatWithCommas ( input . value ) ;
795
795
}
796
- updateStrength ( ) ;
796
+ // updateStrength();
797
797
} ,
798
798
} ,
799
799
CandidatesScroll : {
@@ -804,7 +804,7 @@ const Hooks = {
804
804
candidateElement . scrollIntoView ( {
805
805
behavior : "instant" ,
806
806
block : "start" ,
807
- inline : "nearest"
807
+ inline : "nearest" ,
808
808
} ) ;
809
809
}
810
810
} ) ;
@@ -823,18 +823,20 @@ const Hooks = {
823
823
entries . forEach ( ( entry ) => {
824
824
if ( entry . isIntersecting && entry . intersectionRatio > 0.5 ) {
825
825
const candidateId = entry . target . id ;
826
- const index = candidateId . split ( '-' ) [ 1 ] ;
826
+ const index = candidateId . split ( "-" ) [ 1 ] ;
827
827
if ( index !== undefined ) {
828
828
// Update the sidebar selection without triggering a scroll
829
- this . pushEvent ( "update_current_index_silent" , { index : parseInt ( index ) } ) ;
829
+ this . pushEvent ( "update_current_index_silent" , {
830
+ index : parseInt ( index ) ,
831
+ } ) ;
830
832
}
831
833
}
832
834
} ) ;
833
835
} ,
834
836
{
835
837
root : null ,
836
838
rootMargin : "-20% 0px -20% 0px" ,
837
- threshold : [ 0.5 ]
839
+ threshold : [ 0.5 ] ,
838
840
}
839
841
) ;
840
842
You can’t perform that action at this time.
0 commit comments