Input type="date" consuming lot of memory on main thread

I am creating a form in which I’m using

<input type="date">

Now, in some devices it shows up like:

While in other devices, it looks like:

The latter is very slow while dragging. My app crashes when the latter calendar appears on the screen throwing out the message:

Skipped 124 frames! The application may be doing too much work on its main thread.

Can anyone help?

Anyone facing a similar issue?