We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe996b3 commit 23f4775Copy full SHA for 23f4775
src/directives/style.js
@@ -19,11 +19,13 @@ module.exports = {
19
update: function (value) {
20
var prop = this.prop
21
if (prop) {
22
- var isImportant = value.slice(-10) === '!important'
23
- ? 'important'
24
- : ''
25
- if (isImportant) {
26
- value = value.slice(0, -10).trim()
+ if (value){
+ var isImportant = value.slice(-10) === '!important'
+ ? 'important'
+ : ''
+ if (isImportant) {
27
+ value = value.slice(0, -10).trim()
28
+ }
29
}
30
this.el.style.setProperty(prop, value, isImportant)
31
if (this.prefixed) {
0 commit comments