From 66fb04692984996e3e0d95cc076ad11bcfd8f481 Mon Sep 17 00:00:00 2001 From: bordun Date: Mon, 11 May 2020 16:04:55 +0200 Subject: [PATCH] button/tab: missing dynamic flag for label prop --- src/client/widgets/basics/button.js | 3 ++- src/client/widgets/containers/tab.js | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/client/widgets/basics/button.js b/src/client/widgets/basics/button.js index 73824d64..73567e42 100644 --- a/src/client/widgets/basics/button.js +++ b/src/client/widgets/basics/button.js @@ -223,7 +223,8 @@ Button.cssVariables = Button.prototype.constructor.cssVariables.concat( Button.dynamicProps = Button.prototype.constructor.dynamicProps.concat( 'on', 'off', - 'norelease' + 'norelease', + 'label' ) module.exports = Button diff --git a/src/client/widgets/containers/tab.js b/src/client/widgets/containers/tab.js index f4e1aaf0..f6b75470 100644 --- a/src/client/widgets/containers/tab.js +++ b/src/client/widgets/containers/tab.js @@ -3,7 +3,7 @@ var Panel = require('./panel'), resize = require('../../events/resize'), {iconify} = require('../../ui/utils') -module.exports = class Tab extends Panel { +class Tab extends Panel { static description() { @@ -130,3 +130,9 @@ module.exports = class Tab extends Panel { } } + +Tab.dynamicProps = Tab.prototype.constructor.dynamicProps.concat( + 'label' +) + +module.exports = Tab