Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"typeable" ignores "format"

See original GitHub issue

“typeable” ignores “format” attribute and only works if I type date in format “MM.dd.yyyy”

Component use:

<datepicker v-model="date" :format="'dd.MM.yyyy'" :typeable="true"></datepicker>

1.5.1 and 1.5.2

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:20
  • Comments:24 (1 by maintainers)

github_iconTop GitHub Comments

charliekasselcommented, Sep 22, 2018

This is as designed. If a user types something then it is left as is, as long as it parses to a Date object. It doesn’t really matter what is displayed in the input as the value will be the same - i.e. the Date object.

tehnologcommented, Oct 22, 2018

This is wrong. If user type date in ‘dd.MM.yyyy’, ‘MM.dd.yyyy’, ‘yyyy.MM.dd’ etc, Date object should be different. So It’s impossible to type date in non-standard format. Also values such as ‘25.05.1990’ are clearing on blur.

Read more comments on GitHub >

github_iconTop Results From Across the Web

printf() — Print Formatted Characters - IBM
The printf() function formats and prints a series of characters and values to ... The type character, which appears after the last optional...
Read more >
Disable writing in input type number HTML5 - Stack Overflow
I want to disable writing into a field of type number, for avoiding strings data, and write just numbers, so how to enable...
Read more >
Excel changing numbers, removes the decimal point.
Excel has decided to eliminate the decimal point in the number field for gas, so I type 12.215 and excel shows 12215 and...
Read more >
Table and cell styles in InDesign - Adobe Support
Just as you use text styles to format text, you can use table and cell styles to format tables. A table style is...
Read more >
Configuration - Helix
auto-format, Enable automatic formatting on save. true ... files listed within ignore files are ignored by (not visible in) the helix file picker...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found