Skip to content

Commit

Permalink
fix(#2328): Error when rendering external view when 'iframe' property…
Browse files Browse the repository at this point in the history
… is set to true (#2335)
  • Loading branch information
SteKoe committed Mar 15, 2023
1 parent 29df260 commit 72006e2
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { h } from 'vue';

import './style.css';

import sbaConfig from '@/sba-config';
Expand All @@ -26,9 +28,9 @@ const addIframeView = (viewRegistry, { url, label, order }) => {
order,
component: {
inheritAttrs: false,
render(createElement) {
return createElement('div', { class: 'external-view' }, [
createElement('iframe', { attrs: { src: url } }),
render() {
return h('div', { class: 'external-view' }, [
h('iframe', { src: url }),
]);
},
},
Expand Down

0 comments on commit 72006e2

Please sign in to comment.