MW link inspector: Empty before appending

We don't inherit any root DOM structure from the parent,
so explicitly clear it.

Change-Id: If4c034e8230ccaf721a8e3667f29c6783c94a8bb
This commit is contained in:
Ed Sanders 2019-06-23 16:58:04 +01:00
parent 92a600d5a2
commit 239e592d15

View file

@ -94,7 +94,7 @@ ve.ui.MWLinkAnnotationInspector.prototype.initialize = function () {
this.linkTypeIndex.$content.append( this.$otherActions );
this.linkTypeIndex.getTabPanel( 'internal' ).$element.append( this.internalAnnotationInput.$element );
this.linkTypeIndex.getTabPanel( 'external' ).$element.append( this.externalAnnotationInput.$element );
this.form.$element.append( this.linkTypeIndex.$element );
this.form.$element.empty().append( this.linkTypeIndex.$element );
};
/**