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: handling of empty values in NcDateTimePickerNative #4540

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

st3iny
Copy link
Contributor

@st3iny st3iny commented Sep 18, 2023

☑️ Resolves

  • Fix none

The native date time picker doesn't handle empty values gracefully. Currently, there will be errors in the console due to a failing type check.

The style guide now renders the currently selected value. Have a look at it on the preview:
https://deploy-preview-4540--nextcloud-vue-components.netlify.app/#/Components/NcPickers?id=ncdatetimepickernative
Links are apparently broken. You may need to scroll to the NcDateTimePickerNative manually.

It should render a date if one is selected and null otherwise.

🖼️ Screenshots

🏚️ Before 🏡 After
B A

🚧 Tasks

  • ...

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable

@st3iny st3iny added bug Something isn't working 2. developing Work in progress feature: datepicker Related to the date/time picker component labels Sep 18, 2023
@st3iny st3iny self-assigned this Sep 18, 2023
@st3iny st3iny force-pushed the fix/empty-datetime-picker-native branch from ec6d1bc to 141c9e4 Compare September 21, 2023 09:26
@st3iny st3iny added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Sep 21, 2023
@szaimen
Copy link
Contributor

szaimen commented Oct 3, 2023

Is this ready for review?

@st3iny st3iny force-pushed the fix/empty-datetime-picker-native branch from 141c9e4 to 49803ee Compare October 4, 2023 10:28
@st3iny st3iny marked this pull request as ready for review October 4, 2023 10:28
@st3iny st3iny force-pushed the fix/empty-datetime-picker-native branch from 49803ee to 314c156 Compare October 4, 2023 10:30
@szaimen
Copy link
Contributor

szaimen commented Oct 4, 2023

Is there a before after or some reproduction steps how to check if it actually works?

@st3iny st3iny force-pushed the fix/empty-datetime-picker-native branch from 314c156 to e8d5ec3 Compare October 4, 2023 10:49
@st3iny
Copy link
Contributor Author

st3iny commented Oct 4, 2023

Is there a before after or some reproduction steps how to check if it actually works?

The style guide now renders the currently selected value. Have a look at:
https://deploy-preview-4540--nextcloud-vue-components.netlify.app/#/Components/NcPickers?id=ncdatetimepickernative

It should render a date if one is selected and null otherwise.

@st3iny st3iny force-pushed the fix/empty-datetime-picker-native branch from e8d5ec3 to 05d58f6 Compare October 5, 2023 09:37
@st3iny st3iny enabled auto-merge October 5, 2023 09:38
@st3iny st3iny added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 5, 2023
@st3iny

This comment was marked as resolved.

@st3iny st3iny added this to the 8.0.0 milestone Oct 5, 2023
@st3iny st3iny merged commit 0aac5f5 into master Oct 5, 2023
15 checks passed
@st3iny st3iny deleted the fix/empty-datetime-picker-native branch October 5, 2023 09:40
@st3iny

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug Something isn't working feature: datepicker Related to the date/time picker component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants