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.umd.js CHANGED
@@ -3788,7 +3788,8 @@
3788
3788
  };
3789
3789
  var TabbedView = function TabbedView(props) {
3790
3790
  var title = props.title,
3791
- className = props.className;
3791
+ className = props.className,
3792
+ selected = props.selected;
3792
3793
 
3793
3794
  var _useState2 = React.useState(0),
3794
3795
  tab = _useState2[0],
@@ -3801,6 +3802,9 @@
3801
3802
  label: child.props.label
3802
3803
  });
3803
3804
  });
3805
+ React.useEffect(function () {
3806
+ if (selected && selected !== tab) setTab(selected);
3807
+ }, [selected]);
3804
3808
  var toolbar = /*#__PURE__*/React__default["default"].createElement(Tabs, {
3805
3809
  selected: tab,
3806
3810
  onChange: function onChange(tab) {