Skip to content

Commit

Permalink
fix(text): should not prevent default action when edit text, because …
Browse files Browse the repository at this point in the history
…long text need scrolling #WIK-17096 (#241)
  • Loading branch information
pubuzhixing8 authored Feb 10, 2025
1 parent 86f3083 commit 5a597dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/grid/src/services/event.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ export class AITableGridEventService {
this.cellEditorPopoverRef.componentInstance.elementRef.nativeElement,
'wheel'
).subscribe((event: WheelEvent) => {
const field = aiTable.fieldsMap()[fieldId];
if (field.type === AITableFieldType.text || field.type === AITableFieldType.richText) {
return;
}
event.preventDefault();
this.aiTable.context?.scrollAction({
deltaX: event.deltaX,
Expand Down

0 comments on commit 5a597dd

Please sign in to comment.