From 57051e1c469fad67c092be5fc3cc327b8d1afc92 Mon Sep 17 00:00:00 2001 From: Ron Chaplin Date: Thu, 18 Jul 2024 09:33:30 -0500 Subject: [PATCH] LWB-264 adding in src attribute assignment for Iframe component --- src/Components/EmbeddedContent/Iframe.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Components/EmbeddedContent/Iframe.php b/src/Components/EmbeddedContent/Iframe.php index eaa59cc3..e04085d5 100644 --- a/src/Components/EmbeddedContent/Iframe.php +++ b/src/Components/EmbeddedContent/Iframe.php @@ -196,6 +196,9 @@ public function mount(): void } $this->specificAttributes->add(['sandbox' => $this->sandbox]); } + if (! empty($this->src)) { + $this->specificAttributes->add(['src' => $this->src]); + } if (! empty($this->srcdoc)) { $this->specificAttributes->add(['srcdoc' => $this->srcdoc]); }