Skip to content

Commit

Permalink
[ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 13, 2024
1 parent 30537dd commit f95495d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js.map

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions src/web/assets/cp/src/js/ComponentSelectInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,10 @@ Craft.ComponentSelectInput = Garnish.Base.extend(

this.addListener($component, 'dblclick,taphold', (ev) => {
// don't open the edit slideout if we are tapholding to drag
if (
ev.type !== 'taphold' ||
!$(ev.originalEvent.originalTarget).hasClass('move')
) {
disclosureMenu.$container.find('[data-edit-action]').click();
if (ev.type === 'taphold' && ev.target.nodeName === 'BUTTON') {
return;
}
disclosureMenu.$container.find('[data-edit-action]').click();
});

this.hideOption($component.data('id'));
Expand Down

0 comments on commit f95495d

Please sign in to comment.