Skip to content

fix(datetime): updating value with min scrolls to new value - #28549

Merged
liamdebeasi merged 1 commit into
mainfrom
FW-5618
Nov 20, 2023
Merged

fix(datetime): updating value with min scrolls to new value#28549
liamdebeasi merged 1 commit into
mainfrom
FW-5618

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented Nov 16, 2023

Copy link
Copy Markdown
Contributor

Issue number: resolves #28548


What is the current behavior?

Datetime was not scrolling at all when the value prop was changed programmatically. This was due to some logic we had in componentDidRender to work around a WebKit bug which was causing the scroll position to be moved back to where it was prior to setting the value prop. This caused the scroll position to never move.

What is the new behavior?

  • Datetime scrolls to the new value when value is updated programmatically even if min is set.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Dev build: 7.5.6-dev.11700169088.140f3e6a

Co-authored-by: amandaejohnston amandaejohnston@users.noreply.github.com

@liamdebeasi
liamdebeasi added this pull request to the merge queue Nov 20, 2023
Merged via the queue into main with commit 388d19e Nov 20, 2023
@liamdebeasi
liamdebeasi deleted the FW-5618 branch November 20, 2023 14:30
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.

bug: ion-datetime does not scroll to value

2 participants