diff --git a/src/mode/shared/bar.js b/src/mode/shared/bar.js
index <HASH>..<HASH> 100644
--- a/src/mode/shared/bar.js
+++ b/src/mode/shared/bar.js
@@ -489,6 +489,7 @@ function getBarData(vm, type) {
   }
 
   return {
+    hideBar,
     props: {
       type: type,
       ops: {
@@ -518,8 +519,11 @@ export function createBar(h, vm) {
   const horizontalBarProps = getBarData(vm, 'horizontal');
 
   // set class hooks
-  vm.setClassHook('hasVBar', !!verticalBarProps);
-  vm.setClassHook('hasHBar', !!horizontalBarProps);
+  vm.setClassHook('hasVBar', !!(verticalBarProps && !verticalBarProps.hideBar));
+  vm.setClassHook(
+    'hasHBar',
+    !!(horizontalBarProps && !horizontalBarProps.hideBar)
+  );
 
   return [
     verticalBarProps ? (
fix: incorrect class hook when rail is keepshow.(close #<I>)