We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b727dd1 commit 94bf88aCopy full SHA for 94bf88a
apps/builder/app/canvas/interceptor.ts
@@ -159,8 +159,13 @@ export const subscribeInterceptedEvents = () => {
159
if ($isPreviewMode.get()) {
160
return;
161
}
162
- // prevent typing in inputs only in canvas mode
163
- event.preventDefault();
+ if (
+ event.target instanceof HTMLInputElement ||
164
+ event.target instanceof HTMLTextAreaElement
165
+ ) {
166
+ // prevent typing in inputs only in canvas mode
167
+ event.preventDefault();
168
+ }
169
};
170
171
// Note: Event handlers behave unexpectedly when used inside a dialog component.
0 commit comments