Skip to content

fix(datetime-button): log error if non-datetime instance is passed - #27456

Merged
liamdebeasi merged 1 commit into
mainfrom
datetime-button-improved-error
May 12, 2023
Merged

liamdebeasi merged 1 commit into
mainfrom
datetime-button-improved-error

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented May 11, 2023 •

Copy link
Copy Markdown
Contributor

Issue number: N/A


What is the current behavior?

An issue was filed in #27452 where the presentation property was not being respected. The problem ended up being that the ID passed to ion-datetime-button was not associated with an ion-datetime instance, so it did not pick up on the presentation property. I think we can handle this better by logging an error if the ID passed does not belong to an ion-datetime.

What is the new behavior?

  • Log an error if the ID passed to ion-datetime-button exists but does not belong to an ion-datetime instance.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions Bot added the package: core @ionic/core package label May 11, 2023
@liamdebeasi
liamdebeasi marked this pull request as ready for review May 11, 2023 14:22
@liamdebeasi
liamdebeasi requested a review from a team May 12, 2023 14:05
@liamdebeasi
liamdebeasi added this pull request to the merge queue May 12, 2023
Merged via the queue into main with commit 7b7e05a May 12, 2023
@liamdebeasi
liamdebeasi deleted the datetime-button-improved-error branch May 12, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants