Skip to content

Commit

Permalink
Fix: Apply taggedElement to improve iframe height resizing in v3 forms (
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaHungDinh authored Nov 8, 2024
1 parent cde44c5 commit 982ead3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,6 @@ private function getFormViewUrl(DonationForm $donationForm): string
*/
protected function loadEmbedScript()
{
(new EnqueueScript(
'givewp-donation-form-embed',
'build/donationFormEmbed.js',
GIVE_PLUGIN_DIR,
GIVE_PLUGIN_URL,
'give'
))->loadInFooter()->enqueue();

(new EnqueueScript(
'givewp-donation-form-embed-app',
'build/donationFormBlockApp.js',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default function ModalForm({dataSrc, embedId, openFormButton, isFormRedir
id={embedId}
src={dataSrcUrl}
checkOrigin={false}
heightCalculationMethod={'taggedElement'}
style={{
minWidth: '100%',
border: 'none',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ function DonationFormBlockApp({
id={embedId}
src={dataSrc}
checkOrigin={false}
heightCalculationMethod={'taggedElement'}
style={{
width: '1px',
minWidth: '100%',
Expand Down

0 comments on commit 982ead3

Please sign in to comment.