Skip to content

Improve input-date and input-date-range #1061

@Magnus93

Description

@Magnus93

Do something on Enter

Numeric keyboard on phone

Image

Using the input on a phone will open up the regular keyboard - not the number one.
This is because I'm using to keep the width of what is written.

This could be fixed in the future by using a both input, and span together.

  • Input to set inputmode
  • span to set appropriate width (since input can't fit content)
<span>{this.text}</span> /* hidden when !readonly  */
<input inputmode="number" /> /* only shown when readonly */

This could be made into a FunctionalComponent that could then also be used for the hh and mm for date-time.

smoothly-calendar month is uneffected by typed value

start < end

Date Range emits on each hover

  • Stop emitting on each hover
Screencast.from.2025-11-27.11_48_10.webm

Enforce min/max

  • Enforce Prop min/max

smoothly-input-date-time

  • Use smoothly-date-text in date-time (width similar inputs for hh:mm
    still uses the old tidily solution for date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions