Skip to content

出荷削除ボタンの重複data-bs-toggle属性を修正#6593

Open
dk-umebius wants to merge 1 commit intoEC-CUBE:4.3from
U-Mebius:fix/duplicate_data_bs_toggle_shipping
Open

出荷削除ボタンの重複data-bs-toggle属性を修正#6593
dk-umebius wants to merge 1 commit intoEC-CUBE:4.3from
U-Mebius:fix/duplicate_data_bs_toggle_shipping

Conversation

@dk-umebius
Copy link
Contributor

data-bs-toggleが二重に指定されていた問題を修正

  • 修正前: data-bs-toggle="modal" data-bs-target="..." data-bs-toggle="tooltip" data-bs-placement="top" title="..."
  • 修正後: data-bs-toggle="modal" data-bs-target="..." title="..."

Bootstrap 5では1つの要素に複数のdata-bs-toggleを指定できないため、
もともと動作してないtooltip用のdata-bs-toggle属性とdata-bs-placement属性を削除。
title属性は残してあるため、ブラウザ標準のツールチップは表示される。

Fixes #6582

テスト(Test)

・挙動が変わっていないことを画面で確認
・削除モーダルは正常に開く

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更はありません
  • フックポイントの呼び出しタイミングの変更はありません
  • フックポイントのパラメータの削除・データ型の変更はありません
  • twigファイルに渡しているパラメータの削除・データ型の変更はありません
  • Serviceクラスの公開関数の、引数の削除・データ型の変更はありません
  • 入出力ファイル(CSVなど)のフォーマット変更はありません

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか
    • 権限を超えた操作が可能にならないか
    • 不要なファイルアップロードがないか
    • 外部へ公開されるファイルや機能の追加ではないか
    • テンプレートでのエスケープ漏れがないか

data-bs-toggleが二重に指定されていた問題を修正

- 修正前: data-bs-toggle="modal" data-bs-target="..." data-bs-toggle="tooltip" data-bs-placement="top" title="..."
- 修正後: data-bs-toggle="modal" data-bs-target="..." title="..."

Bootstrap 5では1つの要素に複数のdata-bs-toggleを指定できないため、
tooltip用のdata-bs-toggle属性とdata-bs-placement属性を削除。
title属性は残してあるため、ブラウザ標準のツールチップは表示される。

Fixes EC-CUBE#6582
Copilot AI review requested due to automatic review settings January 21, 2026 00:02
Copy link

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

This PR fixes a duplicate data-bs-toggle attribute on the shipping delete button. Bootstrap 5 does not support multiple data-bs-toggle values on a single element, so the non-functional tooltip attributes have been removed while preserving the modal functionality and the native browser tooltip via the title attribute.

Changes:

  • Removed duplicate data-bs-toggle="tooltip" and data-bs-placement="top" attributes from the shipping delete button

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.70%. Comparing base (1cd4dfc) to head (6ef799d).
⚠️ Report is 14 commits behind head on 4.3.

Additional details and impacted files
@@            Coverage Diff             @@
##              4.3    #6593      +/-   ##
==========================================
- Coverage   82.70%   82.70%   -0.01%     
==========================================
  Files         480      480              
  Lines       26507    26507              
==========================================
- Hits        21923    21922       -1     
- Misses       4584     4585       +1     
Flag Coverage Δ
E2E 82.70% <ø> (-0.01%) ⬇️
Unit 82.70% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

出荷登録画面 data-bs-toggleが重複しているタグがある

1 participant