Skip to content

編集画面にReferencePropertyEditorを表示タイプ UNIQUE で配置した場合の不具合修正#1979

Open
xlei-duoce wants to merge 4 commits intomasterfrom
feature/gem-1962-refpropertyeditor-unique-scroll-fix
Open

編集画面にReferencePropertyEditorを表示タイプ UNIQUE で配置した場合の不具合修正#1979
xlei-duoce wants to merge 4 commits intomasterfrom
feature/gem-1962-refpropertyeditor-unique-scroll-fix

Conversation

@xlei-duoce
Copy link
Copy Markdown
Contributor

@xlei-duoce xlei-duoce commented Mar 11, 2026

対応内容

fixes #1962

  • 原因はdesign.js ですでに .modal-btn / .modal-lnk に対してmodalWindow() が初期化されています。functions.jsのrefUnique 側でも modalWindow() を呼び出しているため、click handler が二重登録されていました。その結果 overlayManager.addOverlay() が2回実行され、removeOverlay() とのバランスが崩れてスクロールが復元されなくなっていました。

  • 対応:refUnique() から modalWindow() / subModalWindow() の初期化処理を削除し、UNIQUE 参照の業務ロジックのみを担当するように見直しました。
    あわせて、動的に追加される UNIQUE 行については [common.js]側で .sel-btn / .ins-btn の modal 初期化を行うように変更し、多重初期化を防ぎつつ追加行でも正しくモーダルが開くようにしました。

動作確認・スクリーンショット(任意)

1962_テストエビデンス.xlsx

レビュー観点・補足情報(任意)

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

編集画面で ReferencePropertyEditor を表示タイプ UNIQUE で配置した際に発生していた不具合(モーダル起動トリガーのクリックイベント多重バインド起因と思われる挙動)を抑止するため、modalWindow のクリックイベント登録を名前空間付きで再登録するようにしたPRです。

Changes:

  • modalWindow のクリックハンドラを click.modalWindow の名前空間付きイベントとして登録
  • 再初期化時に既存の click.modalWindowoff してから on することで多重登録を防止

@xlei-duoce xlei-duoce self-assigned this Mar 11, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

@hkondoh hkondoh removed their request for review March 18, 2026 04:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

@KoheiKGYM
Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants