Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## master

## 3.0.29 (2026-07-05)

- 検索欄の autocapitalize を無効化

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これって dbe742d のやつですか?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

はい、そうです。
dbe742d#12 には関係ないのでPRに含めず直接コミットしたのですが、マージ後にすぐデプロイできるようにバージョンの更新はPRに含めたくて、そうなりました。

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

マージ前に別の変更が入るかもしれないので、PRにバージョンの更新まで含めるのはあまり良くないかもしれませんね…

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

今回はあまり影響ないので問題ないかと思います
バージョン上げたときにタグも打ちたいので、リリース用のPR作ってもいいかもしれませんね。最近はリリースノートをPRのタイトルから作れるので

- 検索UIの外側をクリックした時に検索結果を非表示にするように変更

## 3.0.28 (2026-07-05)

- 依存ライブラリを更新
Expand Down
6 changes: 6 additions & 0 deletions js/crsearch/crsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,12 @@ export default class CRSearch {
$(e.target).blur()
return this._hide_all_result()
})
$(document).on('pointerdown', e => {
// 検索UIの外側をクリックした時、検索結果を非表示にする
if (!$(e.target).closest(`.${CRSearch._KLASS}`).length) {
this._hide_all_result()
}
})

const result_wrapper = $('<div />')
result_wrapper.addClass(CRSearch._RESULT_WRAPPER_KLASS)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crsearch",
"version": "3.0.28",
"version": "3.0.29",
"description": "cpprefjp / boostjp searcher",
"main": "dist/js/crsearch.js",
"module": "js/crsearch.js",
Expand Down
Loading