We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbe742d commit a6c0427Copy full SHA for a6c0427
1 file changed
js/crsearch/crsearch.js
@@ -440,6 +440,12 @@ export default class CRSearch {
440
$(e.target).blur()
441
return this._hide_all_result()
442
})
443
+ $(document).on('pointerdown', e => {
444
+ // 検索UIの外側をクリックした時、検索結果を非表示にする
445
+ if (!$(e.target).closest(`.${CRSearch._KLASS}`).length) {
446
+ this._hide_all_result()
447
+ }
448
+ })
449
450
const result_wrapper = $('<div />')
451
result_wrapper.addClass(CRSearch._RESULT_WRAPPER_KLASS)
0 commit comments