ywana-core8 0.0.553 → 0.0.554

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3794,7 +3794,8 @@ var View = function View(props) {
3794
3794
  };
3795
3795
  var TabbedView = function TabbedView(props) {
3796
3796
  var title = props.title,
3797
- className = props.className;
3797
+ className = props.className,
3798
+ selected = props.selected;
3798
3799
 
3799
3800
  var _useState2 = React.useState(0),
3800
3801
  tab = _useState2[0],
@@ -3807,6 +3808,9 @@ var TabbedView = function TabbedView(props) {
3807
3808
  label: child.props.label
3808
3809
  });
3809
3810
  });
3811
+ React.useEffect(function () {
3812
+ if (selected && selected !== tab) setTab(selected);
3813
+ }, [selected]);
3810
3814
  var toolbar = /*#__PURE__*/React__default["default"].createElement(Tabs, {
3811
3815
  selected: tab,
3812
3816
  onChange: function onChange(tab) {