MultiSelect: Filter text selection

オープン
#8,517 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

  • #8523 @mustafajw07 による — マージされずにクローズ

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
react
領域
frontend

調査の方向性

まず、フィルタリングを有効にした状態で MultiSelect コンポーネントの動作を再現し、次にフィルター入力とオーバーレイがマウスによる選択と外側での解除をどのように処理しているかを追跡します。フィルター入力内でテキストを選択して外側でマウスボタンを離してもオーバーレイが開いたままになることを完了条件とし、変更後に報告された再現手順を確認します。

索引モデルが issue の本文から書いたものです。

説明

Describe the bug

When using MultiSelect with filtering enabled, if I type in the filter input, select the typed text with the mouse, drag outside the panel, and release, the overlay closes.

This makes normal text-selection behavior in the filter input feel broken, because the panel is dismissed even though the interaction started inside the filter field.

Reproducer

I can reproduce this consistently with a standard MultiSelect filter input.

System Information
System:
    OS: macOS 26.3.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 76.47 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.14.0 - /Users/lennert.van-sever/.nvm/versions/node/v24.14.0/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 11.9.0 - /Users/lennert.van-sever/.nvm/versions/node/v24.14.0/bin/npm
    pnpm: 10.2.0 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 146.0.7680.164
    Edge: 146.0.3856.72
    Firefox: 148.0.2
    Safari: 26.3.1
Steps to reproduce the behavior
  1. Open a MultiSelect panel with filter enabled.
  2. Type some text into the filter input.
  3. Select the typed text with the mouse.
  4. Keep holding the mouse button, move the cursor outside the overlay/panel.
  5. Release the mouse button outside.
Expected behavior

The overlay should remain open.

Releasing the mouse outside after starting a text-selection interaction inside the filter input should not be treated as an outside dismiss.

主要言語
CSS
スター
8.3k
フォーク
1.2k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

primefaces/primereact のほかの issue

primefaces/primereact の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。