BootsFaces-OSP icon indicating copy to clipboard operation
BootsFaces-OSP copied to clipboard

b:dateTimePicker resets date to current upon pressing "t"

Open vsvetoslavov opened this issue 3 years ago • 1 comments

Hi In our app we use "dd MMM yyyy" date format (and whatever it's analog in moment.js was). All works good, except if you need October. Upon pressing the "t" key the date is reset to current date. It seems to be a bug in the javascript component used, as it has the same behavior in its showcase as well. Doesn't seem related to specific format, as it is reproducible both in BootsFaces showcase and in bootstrap datepicker ones. Is there any option to remove this behavior? It seems really nagging, and if you need October you're kinda... in trouble. I have to check if pasting triggers that as well, but key press definitely triggers it. I am not aware if the bootstrap-datepicker project has been abandoned, the site refers to a blog post but the link doesn't work (for me at least). I was unable to access issue tracking on bootstrap-datepicker so any help would be appreciated.

vsvetoslavov avatar Jun 23 '22 05:06 vsvetoslavov

Update: Going through the code of bootstrap-datepicker (beautified minified version) I found the following: t: function () { this.date(this.getMoment()) }, It seems like intended functionality, but it would really be nice if it could be disabled.

vsvetoslavov avatar Jun 23 '22 05:06 vsvetoslavov

I'm afraid development of BootsFaces has slowed down considerably. We'll never manage to address this issue. Let's close it.

stephanrauh avatar Aug 12 '24 15:08 stephanrauh