Skip to content

SvelteDate behaving weirdly (reactivity issue) #12717

Closed
@felix-roehrich

Description

@felix-roehrich

Describe the bug

SvelteDate is behaving weirdly, please see the REPL. I guess the underlying issue of the bugs is a reactivity issue and it might be the same for both bugs.

Reproduction

  1. Expected behaviour: The current month/year is shown and clicking on next updates the month/year as expected. REPL
  2. Bug 1: Click "next" once; the month updates as expected. Click "next" again and notice that the month stays the same. Also note that if you remove {d.getFullYear()}, the month updates as expected. REPL
  3. Bug 2: Here reactivity works fine, but notice that the year is printed in the second line, even though it should only be the month. REPL

Logs

-

System Info

REPL

Severity

blocking an upgrade

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions