kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
83 stars 22 forks source link

Input: fix initial value not shown in Chrome #3338

Closed RasmusKjeldgaard closed 7 months ago

RasmusKjeldgaard commented 7 months ago

Which issue does this PR close?

This PR closes #3337

What is the new behavior?

This is a hotfix where we make sure to remove the type="date" attribute no matter what, and re-add it back when we want to use the native date picker.

This is to ensure that the default browser behavior does not kick in for the inputs default date behavior, where the inputmask library is used instead.

Does this PR introduce a breaking change?

Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Reminders

Review

When the pull request has been approved it will be merged to develop by Team Kirby.