Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: always reset time when setting range #66

Merged
merged 3 commits into from Aug 12, 2021

Conversation

jajugoguma
Copy link
Contributor

Please check if the PR fulfills these requirements

  • It's submitted to right branch according to our branching model
  • It's right issue type on title
  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)
  • It does not introduce a breaking change or has description for the breaking change

Description

Fix ​an issue where when setting a range, the time would be reset to the start time of the range regardless of the set time


Thank you for your contribution to TOAST UI product. 🎉 😘 ✨

Copy link
Contributor

@lja1018 lja1018 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰완료합니다.

@@ -768,7 +768,9 @@ var TimePicker = defineClass(
* @private
*/
applyRange: function(beginHour, beginMin, endHour) {
this.setTime(beginHour, beginMin);
if (this.isLaterThanSettedTime(beginHour, beginMin)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setted가 없는 단어라 isLaterThanSetTime이면 될 것 같아요.

Copy link

@jwlee1108 jwlee1108 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 완료합니다.

@@ -836,6 +838,17 @@ var TimePicker = defineClass(
minute <= END_NUMBER_OF_MINUTE;
},

/**
* Compare given time with setted time

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기도 수정해주면 좋겠네요 setted -> set

Copy link

@adhrinae adhrinae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 완료합니다.

@jajugoguma jajugoguma merged commit 903b924 into master Aug 12, 2021
@jajugoguma jajugoguma deleted the fix/always-reset-time-when-setting-range branch August 12, 2021 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants