Skip to content

Commit

Permalink
fix(Popup.countdowm): fix minutes not being set to 0 when useTYRCTPic…
Browse files Browse the repository at this point in the history
…ker is true and countdown clock is set to Max, fixes #155 (#156)
  • Loading branch information
ZengBeauty committed Oct 26, 2021
1 parent e691348 commit 65ac365
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions example/tuya-panel-kit/src/pages/feedback/popup/index.tsx
Expand Up @@ -32,6 +32,7 @@ export default () => {
minuteText: Strings.getLang('text_minute'),
value: state.countdown,
onMaskPress: ({ close }) => close(),
// useTYRCTPicker: true,
onConfirm: (data, { close }) => {
setState({ countdown: data.hour * 60 + data.minute });
close();
Expand Down
Expand Up @@ -108,7 +108,7 @@ export class PickerView extends Component {
}

componentWillReceiveProps(nextProps) {
this._stateFromProps(nextProps);
this.setState(this._stateFromProps(nextProps));
}

_stateFromProps = props => {
Expand Down

0 comments on commit 65ac365

Please sign in to comment.