diff --git a/modules/ve-mw/ce/nodes/ve.ce.MWBlockImageNode.js b/modules/ve-mw/ce/nodes/ve.ce.MWBlockImageNode.js index ab2cdfc6b3..ef38776771 100644 --- a/modules/ve-mw/ce/nodes/ve.ce.MWBlockImageNode.js +++ b/modules/ve-mw/ce/nodes/ve.ce.MWBlockImageNode.js @@ -139,7 +139,8 @@ ve.ce.MWBlockImageNode.prototype.updateCaption = function () { } } if ( this.$caption ) { - this.$caption.toggle( this.captionVisible ); + // Don't use show() as it sets display to block, overriding the stylesheet. + this.$caption.css( 'display', this.captionVisible ? '' : 'none' ); } };