mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-20 15:38:32 +00:00
Merge commit 'a01e4b19633323c99e727f9d801385c20dbaad2d' into fix/drop-object-is-data
This commit is contained in:
commit
92cbff2b1b
@ -375,12 +375,31 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
|||||||
x.initEvent('click', true);
|
x.initEvent('click', true);
|
||||||
this._iframe?.dispatchEvent(x);
|
this._iframe?.dispatchEvent(x);
|
||||||
const target = e.target as HTMLElement;
|
const target = e.target as HTMLElement;
|
||||||
if (
|
|
||||||
isFormEvent(e) ||
|
// TODO: need more elegant solution to ignore click events of compoents in designer
|
||||||
target?.closest(
|
const ignoreSelectors: any = [
|
||||||
'.next-input-group,.next-checkbox-group,.next-date-picker,.next-input,.next-month-picker,.next-number-picker,.next-radio-group,.next-range,.next-range-picker,.next-rating,.next-select,.next-switch,.next-time-picker,.next-upload,.next-year-picker,.next-breadcrumb-item,.next-calendar-header,.next-calendar-table',
|
'.next-input-group',
|
||||||
)
|
'.next-checkbox-group',
|
||||||
) {
|
'.next-date-picker',
|
||||||
|
'.next-input',
|
||||||
|
'.next-month-picker',
|
||||||
|
'.next-number-picker',
|
||||||
|
'.next-radio-group',
|
||||||
|
'.next-range',
|
||||||
|
'.next-range-picker',
|
||||||
|
'.next-rating',
|
||||||
|
'.next-select',
|
||||||
|
'.next-switch',
|
||||||
|
'.next-time-picker',
|
||||||
|
'.next-upload',
|
||||||
|
'.next-year-picker',
|
||||||
|
'.next-breadcrumb-item',
|
||||||
|
'.next-calendar-header',
|
||||||
|
'.next-calendar-table',
|
||||||
|
'.editor-container', // 富文本组件
|
||||||
|
];
|
||||||
|
const ignoreSelectorsString = ignoreSelectors.join(',');
|
||||||
|
if (isFormEvent(e) || target?.closest(ignoreSelectorsString)) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user