Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Regular Contributor
iruka
Posts: 79
Registered: ‎09-17-2012
My Device: Torch 9800

Weird <input type="date"> Behaviour

Hi all. I have this weird problem using date input element.

 

If I include date input element using JavaScript&colon; (#mainBody is the id for <body>)

 

var strAddEle = "";

strAddEle += '<p><input type="date" id="dateTo"></p>';
strAddEle += '<p><input type="date" id="dateFrom"></p>';

$('#mainBody').html(strAddEle);

 when I test on 9900 device, I cannot click using trackpad on the input field to open up the date selection. But if I tap on the input field using the screen, the date selection will appear.

 

However if I include date input element directly into html. I can click using trackpad.

 

<body id="mainBody">
<p><input type="date" id="dateTo"></p>
<p><input type="date" id="dateFrom"></p>
</body>

 

Can anyone please advice? Thank you.

New Contributor
Slegend
Posts: 2
Registered: ‎11-27-2013
My Device: Blackberry Q10

Re: Weird <input type="date"> Behaviour

[ Edited ]

I had the same issue for different input (for DropDown menus) with bbUI.js framework and I did some styling then refresh as they mentioned in their codes, after that worked fine.

 

I thought I would tell you about this so you may benifit from it.

 

it was like ...

 

var dropdown = document.getElementById("cars");

dropdown = bb.dropdown.style( dropdown );

bb.refresh();

 

Good Luck in your work. :smileyhappy: