@ctlyst.id/internal-ui 2.0.18 → 2.0.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -1586,14 +1586,10 @@ const TimeInput = ({
1586
1586
  }) => {
1587
1587
  const [time, setTime] = React__default.useState(value || '00:00');
1588
1588
  const handleChange = e => {
1589
- var _e$target;
1589
+ var _e$target, _e$target2;
1590
1590
  setTime(((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) || '00:00');
1591
+ if (onChange) onChange(((_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value) || '00:00');
1591
1592
  };
1592
- React__default.useEffect(() => {
1593
- if (onChange) {
1594
- onChange(time);
1595
- }
1596
- }, [time]);
1597
1593
  return /*#__PURE__*/React__default.createElement(Flex, {
1598
1594
  flexDir: "column",
1599
1595
  alignItems: "center",