diff --git a/core/modules/widgets/reveal.js b/core/modules/widgets/reveal.js index f5511f4b3..e89377186 100755 --- a/core/modules/widgets/reveal.js +++ b/core/modules/widgets/reveal.js @@ -142,10 +142,10 @@ RevealWidget.prototype.readState = function() { this.readPopupState(state); break; case "match": - this.isOpen = !!(this.compareStateText(state) == 0); + this.isOpen = this.text === state; break; case "nomatch": - this.isOpen = !(this.compareStateText(state) == 0); + this.isOpen = this.text !== state; break; case "lt": this.isOpen = !!(this.compareStateText(state) < 0);