Skip to content

Commit

Permalink
Fix an issue where m-frame loaded unnecessarily (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusLongmuir authored May 8, 2024
1 parent a5c61a1 commit b4dd59f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/mml-web/src/elements/Frame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ export class Frame extends TransformableElement {
if (instance.frameContentsInstance) {
instance.disposeInstance();
}
if (instance.props.src && instance.isConnected) {
instance.createFrameContentsInstance(instance.props.src);
}
instance.syncLoadState();
},
"load-range": (instance, newValue) => {
instance.props.loadRange = parseFloatAttribute(newValue, null);
Expand Down

0 comments on commit b4dd59f

Please sign in to comment.