Skip to content

Commit

Permalink
short circuit double click handler
Browse files Browse the repository at this point in the history
  • Loading branch information
st-angelo-adobe committed Nov 15, 2024
1 parent d678854 commit fad6ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion studio/src/rte/rte-field.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,6 @@ class RteField extends LitElement {
}

handleOpenOfferSelector(event, element) {
if (!event && !element) return;
ostRteFieldSource = this;
this.showOfferSelector = true;
openOfferSelectorTool(element);
Expand Down Expand Up @@ -695,6 +694,7 @@ class RteField extends LitElement {

#handleDoubleClickOn(view, pos, node, nodePos, event) {
const dom = event.target.closest('[data-wcs-osi]');
if (!dom) return;
ostRteFieldSource = this;
this.showOfferSelector = true;
this.handleOpenOfferSelector(null, dom);
Expand Down

0 comments on commit fad6ef0

Please sign in to comment.