Skip to content

Commit

Permalink
Merge pull request #5660 from ConnorS1110/fix-firefox-multiselect
Browse files Browse the repository at this point in the history
Fixed being unable to properly long press on cards to multiselect on Firefox
  • Loading branch information
thornbill authored Jun 5, 2024
2 parents ab78167 + c35cec5 commit 5680c18
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/multiSelect/multiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ function showSelection(item, isChecked) {
parent.appendChild(itemSelectionPanel);

let cssClass = 'chkItemSelect';
if (isChecked && !browser.firefox) {
// In firefox, the initial tap hold doesnt' get treated as a click
// In other browsers it does, so we need to make sure that initial click is ignored
if (isChecked) {
cssClass += ' checkedInitial';
}
const checkedAttribute = isChecked ? ' checked' : '';
Expand Down

0 comments on commit 5680c18

Please sign in to comment.