Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions apps/builder/app/canvas/interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,13 @@ export const subscribeInterceptedEvents = () => {
if ($isPreviewMode.get()) {
return;
}
// prevent typing in inputs only in canvas mode
event.preventDefault();
if (
event.target instanceof HTMLInputElement ||
event.target instanceof HTMLTextAreaElement
) {
// prevent typing in inputs only in canvas mode
event.preventDefault();
}
};

// Note: Event handlers behave unexpectedly when used inside a dialog component.
Expand Down