Skip to content

Commit 1a17f93

Browse files
author
Mohsen Biglari
committed
fix default option error
1 parent e6bc22d commit 1a17f93

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/com/react-dynamic-tabs/useDynamicTabs/createDefaultOptions.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ CreateDefaultOptions.prototype._getOptions = function () {
3333
if (that.directionsRange.indexOf(value) === -1)
3434
throw 'Invalid direction value! it can be eather of "ltr" or "rtl" ';
3535
_direction = value;
36-
}
36+
},
37+
enumerable: true
3738
},
3839
tabComponent: {
3940
get() {
@@ -44,7 +45,8 @@ CreateDefaultOptions.prototype._getOptions = function () {
4445
throw 'tabComponent property must be type of a function.';
4546
_options.isCustomTabComponent = fn ? true : false;
4647
_tabComponent = fn ? fn : that._DefaulTabInnerComponent;
47-
}
48+
},
49+
enumerable: true
4850
}
4951
});
5052
return _options;

0 commit comments

Comments
 (0)