c-smile / sciter-sdk

Sciter is an embeddable HTML/CSS/scripting engine
http://sciter.com
Other
2.12k stars 223 forks source link

Scrolling in date input field causes negative date #128

Closed AshfordN closed 5 years ago

AshfordN commented 5 years ago

If the date input field contains the default value (00/00/0000), scrolling down in the field (either using the scroll wheel or the down arrow) causes the date to contain negative values. This problem goes a bit further om Linux, by crashing the program.

Below is the minimum code to reproduce the error

<html>
    <body>
        <input type="date" />
    </body>
</html>
MaherFa commented 5 years ago

I couldn't reproduce this issue on Windows 10 x64. default date values on my system are dd / MM / yyyy I also tried changing date format and had no effect.

AshfordN commented 5 years ago

The issue was addresses in build# 4.3.11 (dated 23.08.2019)

[<input|date> <input|time>] better handling of undefined (unset) state, shows [yyyy-mm-dd] text by default.