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 = {
783783 } , 0 ) ;
784784 }
785785
786- updateStrength ( ) ;
786+ // updateStrength();
787787 } ;
788788
789789 input . addEventListener ( "input" , handleInput ) ;
790- input . addEventListener ( "keyup" , updateStrength ) ;
790+ // input.addEventListener("keyup", updateStrength);
791791
792792 // Initial formatting and update
793793 if ( input . value ) {
794794 input . value = formatWithCommas ( input . value ) ;
795795 }
796- updateStrength ( ) ;
796+ // updateStrength();
797797 } ,
798798 } ,
799799 CandidatesScroll : {
@@ -804,7 +804,7 @@ const Hooks = {
804804 candidateElement . scrollIntoView ( {
805805 behavior : "instant" ,
806806 block : "start" ,
807- inline : "nearest"
807+ inline : "nearest" ,
808808 } ) ;
809809 }
810810 } ) ;
@@ -823,18 +823,20 @@ const Hooks = {
823823 entries . forEach ( ( entry ) => {
824824 if ( entry . isIntersecting && entry . intersectionRatio > 0.5 ) {
825825 const candidateId = entry . target . id ;
826- const index = candidateId . split ( '-' ) [ 1 ] ;
826+ const index = candidateId . split ( "-" ) [ 1 ] ;
827827 if ( index !== undefined ) {
828828 // 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+ } ) ;
830832 }
831833 }
832834 } ) ;
833835 } ,
834836 {
835837 root : null ,
836838 rootMargin : "-20% 0px -20% 0px" ,
837- threshold : [ 0.5 ]
839+ threshold : [ 0.5 ] ,
838840 }
839841 ) ;
840842
You can’t perform that action at this time.
0 commit comments