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

feat(calendar-range): added onError callback #253

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

v-gevak
Copy link
Contributor

@v-gevak v-gevak commented Sep 9, 2022

No description provided.

@@ -86,13 +87,15 @@ export const CalendarRangeStatic: FC<CalendarRangeStaticProps> = ({
);

const [inputFromInvalid, setInputFromInvalid] = useState<boolean>(
validateInputFromValue(inputFromValue) === false,
isCompleteDateInput(inputFromValue) && dateFrom === null,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Привел в соответствие логику определения начального состояния с popover календарем.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 3021603037

  • 9 of 10 (90.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.06%) to 81.802%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/calendar-range/src/views/popover.tsx 4 5 80.0%
Totals Coverage Status
Change from base Build 3020481010: 0.06%
Covered Lines: 5918
Relevant Lines: 6656

💛 - Coveralls

@v-gevak v-gevak linked an issue Sep 9, 2022 that may be closed by this pull request
2 tasks
@core-ds-bot
Copy link
Collaborator

Собрана новая демка.

@SiebenSieben SiebenSieben merged commit 46e163c into master Sep 12, 2022
@SiebenSieben SiebenSieben deleted the feat/calendar-range branch September 12, 2022 15:42
core-ds-bot pushed a commit that referenced this pull request Sep 12, 2022
# [31.2.0](v31.1.0...v31.2.0) (2022-09-12)

### Bug Fixes

* **base-modal:** Added element matches polyfill for IE11 ([#245](#245)) ([cb95740](cb95740))
* **button:** increased click area of the active state ([#246](#246)) ([8937248](8937248))
* **checkbox-group:** added onBlur and onFocus ([#250](#250)) ([b4a739b](b4a739b))
* **gallery:** fixed swiper height on ios 14 and lower ([#95](#95)) ([9703ca7](9703ca7))
* **input-autocomplete:** add prop for custom input ([#223](#223)) ([632cb7f](632cb7f))
* **intl-phone-input:** fixed on ios 14 and lower ([#94](#94)) ([8b7d3fc](8b7d3fc))
* **pure-cell:** better pure-cell text (ReactNode for value) ([#240](#240)) ([8eea8b0](8eea8b0))
* **radio-group:** added onBlur and onFocus ([#249](#249)) ([68c802c](68c802c))
* renamed default classnames ([#198](#198)) ([bf22bba](bf22bba))
* **select:** removed ssr warning ([#248](#248)) ([d7f4abd](d7f4abd))

### Features

* **calendar-range:** added onError callback ([#253](#253)) ([46e163c](46e163c))
* **form-control:** new input/select label view (outer) ([#177](#177)) ([66beb15](66beb15))
* **toast-plate:** added inverted views ([#243](#243)) ([a527d15](a527d15))
* **vars:** introducing vars bundles ([#192](#192)) ([28c15a4](28c15a4))
@core-ds-bot
Copy link
Collaborator

🎉 This PR is included in version 31.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Состояние валидации CalendarInput / CalendarRange
6 participants