Arno van Oordt
Arno van Oordt

Reputation: 3520

Disable close-on-click-modal in Element UI

With (Vue) Element UI I'm trying to disable a Dialog element from closing on click. In the docs it say there is a close-on-click-modal attribute, but it's default is true and I have no idea on how to set it to false.

close-on-click-modal="false" gives this error: "closeOnClickModal". Expected Boolean, got String.

Is there a way to disable this setting?

Upvotes: 2

Views: 5159

Answers (1)

Jns
Jns

Reputation: 3257

Please try it by changing close-on-click-modal="false" to :close-on-click-modal="false"

If you use the double dot, the content of the attribute is evaluated as Javascript. If you don't, it's a string.

Upvotes: 7

Related Questions