sethsandaru / vue-form-builder

Super Form Builder built on top of Vue with Drag & Drop functionality, savable-form-schema and easy to maintain/upgrade your form.
http://vue-form-builder.sethphat.com
MIT License
413 stars 129 forks source link

Suggestion: use browser's datepicker for smaller bundle on supported browsers #89

Closed raphaelarias closed 3 years ago

raphaelarias commented 3 years ago

Hi!

What a great package you have developed! I've starred it! You may have considered already, but perhaps it would be possible to remove datepicker dependency (for supported browsers) and use the browser's own date picker. Perhaps even allow the user to choose what datepicker they want.

Cheers!

sethsandaru commented 3 years ago

@raphaelarias This one actually was in my mind from the beginning of v2.0.0 (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date) but IE9 & Safari can't use it and we might need to use a polyfill script (https://github.com/jcgertig/date-input-polyfill) ~35KB

Let's compare:

So the litepicker is basically bigger than the polyfill a little bit (~1kb gzipped) but give us many great features.

😛

sethsandaru commented 3 years ago

I'd like to close this issue since there is no response. Let us keep using the Litepicker, it's super cool!