Skip to content

Instantly share code, notes, and snippets.

@ciencia
Created March 26, 2021 17:47
Show Gist options
  • Save ciencia/18a310e7682dec81454cff331cef8fdf to your computer and use it in GitHub Desktop.
Save ciencia/18a310e7682dec81454cff331cef8fdf to your computer and use it in GitHub Desktop.
patch MediaWiki core General suggestions delay
diff --git a/resources/src/mediawiki.searchSuggest/searchSuggest.js b/resources/src/mediawiki.searchSuggest/searchSuggest.js
index c5357305d5..42ad14a744 100644
--- a/resources/src/mediawiki.searchSuggest/searchSuggest.js
+++ b/resources/src/mediawiki.searchSuggest/searchSuggest.js
@@ -318,7 +318,8 @@
after: onAfterUpdate
},
cache: true,
- highlightInput: true
+ highlightInput: true,
+ delay: 550
} )
.on( 'paste cut drop', function () {
// make sure paste and cut events from the mouse and drag&drop events
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment