@@ -84,7 +84,7 @@ const _sfc_main = defineComponent({
8484 const onDocumentKeydown = ( e ) => {
8585 if ( e . key === props . shortcutKey && e . target !== inputRef . value && window . document . activeElement !== inputRef . value && e . target instanceof HTMLInputElement === false && e . target instanceof HTMLSelectElement === false && e . target instanceof HTMLTextAreaElement === false ) {
8686 e . preventDefault ( ) ;
87- const allVisibleSearchInputs = [ ] . slice . call ( document . querySelectorAll ( " [data-search-input]" ) ) . filter ( ( el ) => {
87+ const allVisibleSearchInputs = [ ] . slice . call ( document . querySelectorAll ( ' [data-search-input="true"]:not([data-shortcut-enabled="false"])' ) ) . filter ( ( el ) => {
8888 return ! ! ( el . offsetWidth || el . offsetHeight || el . getClientRects ( ) . length ) ;
8989 } ) ;
9090 const elToFocus = allVisibleSearchInputs . length > 1 ? allVisibleSearchInputs [ 0 ] : inputRef . value ;
@@ -118,7 +118,7 @@ const _sfc_main = defineComponent({
118118 }
119119} ) ;
120120const _hoisted_1 = /* @__PURE__ */ createElementVNode ( "i" , { class : "search-icon search" } , null , - 1 ) ;
121- const _hoisted_2 = [ "value" ] ;
121+ const _hoisted_2 = [ "data-shortcut-enabled" , " value"] ;
122122const _hoisted_3 = /* @__PURE__ */ createElementVNode ( "i" , {
123123 class : "search-icon shortcut" ,
124124 title : 'Press "/" to search'
@@ -134,6 +134,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
134134 ref : "inputRef" ,
135135 type : "search" ,
136136 "data-search-input" : "true" ,
137+ "data-shortcut-enabled" : _ctx . shortcutListenerEnabled ,
137138 value : _ctx . modelValue
138139 } , _ctx . attrsWithoutStyles , {
139140 onInput : _cache [ 0 ] || ( _cache [ 0 ] = ( ...args ) => _ctx . onInput && _ctx . onInput ( ...args ) ) ,
0 commit comments