Skip to content

Commit 37895a4

Browse files
authored
Merge pull request #267 from irvingwa/rtl-fix
GridItem RTL bugfix
2 parents 8bbc0c7 + 1a501a7 commit 37895a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/GridItem.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
};
258258
259259
self.directionchangeHandler = () => {
260-
this.rtl = getDocumentDir();
260+
this.rtl = getDocumentDir() === 'rtl';
261261
this.compact();
262262
};
263263
@@ -273,7 +273,7 @@
273273
this.eventBus.$on('directionchange', self.directionchangeHandler);
274274
this.eventBus.$on('setColNum', self.setColNum)
275275
276-
this.rtl = getDocumentDir();
276+
this.rtl = getDocumentDir() === 'rtl';
277277
},
278278
beforeDestroy: function(){
279279
let self = this;

0 commit comments

Comments
 (0)