Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Date input field doesn't work well in Firefox #107

Open
tdonohue opened this issue May 17, 2016 · 3 comments
Open

Date input field doesn't work well in Firefox #107

tdonohue opened this issue May 17, 2016 · 3 comments
Labels

Comments

@tdonohue
Copy link
Member

This is a known issue, but just wanted to log it so it isn't forgotten.

When creating a new item in Chrome, the Date input field provides a nice date selection / calendar view. However, in other browsers (e.g. Firefox), this input field just looks like a textbox and provides no date validation functionality.

@tdonohue tdonohue added the bug label May 17, 2016
@DylanMeeus
Copy link
Contributor

It would seem that firefox does not support date as an input type yet. From caniuse.com

The same goes for some other browsers.

I guess we can use something like Modernizr to fall back on a javascript datepicker in case the browser does not support ìnput type="date"?

@tdonohue
Copy link
Member Author

We may also be able to switch to using the ng2-bootstrap Datepicker directive:
http://valor-software.com/ng2-bootstrap/#datepicker

We already are using ng2-bootstrap in other areas.

@tdonohue
Copy link
Member Author

Looks like ng2-bootstrap also has a DatepickerPopup directive that is in the works:
valor-software/ngx-bootstrap#273

Code has begun here: https://github.com/valor-software/ng2-bootstrap/blob/development/components/datepicker/datepicker-popup.component.ts

Currently, it is possible to just use their Datepicker, but we'd have to likely use it in conjunction with a toggle/collapse option to show/hide it. Ideally though, it sounds like we would want the popup to achieve an experience similar to what Chrome provides with input type="date".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants