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