Skip to content

Commit

Permalink
fix(TU-15898): Disable auto-resize for widgets in modal on mobile (#658)
Browse files Browse the repository at this point in the history
When widget is embedded on mobile, it is displayed in fullscreen modal.
The auto-resize setting does not make sense in that case and should be
ignored.
  • Loading branch information
Matej Lednicky authored Jul 17, 2024
1 parent 1f702aa commit 6c8631a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const createWidget = (formId: string, options: WidgetOptions): Widget =>
if (!widgetOptions.inlineOnMobile && (widgetOptions.forceTouch || isFullscreen())) {
widgetOptions.displayAsFullScreenModal = true
widgetOptions.forceTouch = true
widgetOptions.autoResize = false
}

const { embedId, iframe, refresh, focus } = createIframe('widget', { formId, domain, options: widgetOptions })
Expand Down

0 comments on commit 6c8631a

Please sign in to comment.