Skip to content

Buggy behaviour Ember 3 when typing date values #96

@adet4ever

Description

@adet4ever

Sometimes after typing the date input, the date binds and sometimes it just reverts to the old date and doesnt accept the newly entered value.

Date always works when selected through the picker with a mouse but not when entered with keyboard.

In my controller
let time= moment(); template
{{
bs-datetimepicker
date=time
useCurrent=false
dateFormat='DD-MMM-YYYY HH:mm'
noIcon=true
updateDate=(action (mut time))
}}

Seems reproducable using certain 3 letter month Abbr like Dec,Aug, Feb never works.
This addon supposedly supports all options from momentjs

Month M 1 2 ... 11 12
  Mo 1st 2nd ... 11th 12th
  MM 01 02 ... 11 12
  MMM Jan Feb ... Nov Dec
  MMMM January February ... November December

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