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
Developer
Posts: 62
Registered: ‎04-29-2010
My Device: N/A

Keyboard/Menu options still appearing after element has been destroyed.

Hi,

 

I've knocked up a test app to try this out, on the screen all I have is a textbox (type=numeric) and when I enter a number into the box the '123' symbol appears in the top right along with the numeric keyboard. I think have a button which destroys this element when clicked. However, when this is clicked, if I click on the area where the textbox used to be I still see the '123' in the top right and I am able to do a long hold and click 'Paste' or 'Clear Field'. I have tried hiding/destroying and nothing seems to work. You are also able to Paste/Clear field on just standard textboxes or password textboxes after removing them. I have ran this app via the browser and this problem doesn't occur. Is there something I'm missing?

 

Details are as followed: SDK 2.3.0.9 9380 7.1.0.247

 

Cheers

Developer
Posts: 62
Registered: ‎04-29-2010
My Device: N/A

Re: Keyboard/Menu options still appearing after element has been destroyed.

Anyone seen anything similar? 

New Developer
Posts: 57
Registered: ‎08-08-2008
My Device: Not Specified

Re: Keyboard/Menu options still appearing after element has been destroyed.

+1

 

This problem can be witnessed here 

 

http://youtu.be/KTEp6wO4cH8

 

It's not only annoying, it appears to cause lose of cursor and app instability

Retired
Posts: 856
Registered: ‎07-15-2008
My Device: Passport
My Carrier: Bell

Re: Keyboard/Menu options still appearing after element has been destroyed.

Can either of you post some sample code? I'm not sure if we can come up with a workaround, but it's worth a shot.

Tim Windsor
Open Source Technical Lead
Developer
Posts: 62
Registered: ‎04-29-2010
My Device: N/A

Re: Keyboard/Menu options still appearing after element has been destroyed.

This should do it.

 

<!DOCTYPE HTML>
<HTML>
<HEAD>
</HEAD>
<BODY>
<div id="test">
<input type=number>
</div>
<button onclick="document.getElementById('test').innerHTML='';">Clear</button>
</BODY>
</HTML>

 

Retired
Posts: 856
Registered: ‎07-15-2008
My Device: Passport
My Carrier: Bell

Re: Keyboard/Menu options still appearing after element has been destroyed.

Have you tried the newest SDK and/or newer software or other devices with newer software?

 

Just tested this on a 9810 with newer 7.1.0 and built with the 2.3.1 SDK and it worked fine. I'm going to try it on an older build now.

Tim Windsor
Open Source Technical Lead
Developer
Posts: 314
Registered: ‎03-28-2012
My Device: Curve 9360, Playbook, BB10 Dev Alpha
My Carrier: TMN

Re: Keyboard/Menu options still appearing after element has been destroyed.

I think it might be the same problem causing this: https://github.com/blackberry/bbUI.js/issues/16

Nuno
New Developer
Posts: 57
Registered: ‎08-08-2008
My Device: Not Specified

Re: Keyboard/Menu options still appearing after element has been destroyed.

Hi Tim, we can re-produce the above code on a 9860 v7.1.0.342 built with SDK 2.3.1.  We don't have access to a 9810 but have reproduced it on a 9800 with OS 6 and 9380 with 7.1. 

 

Sometimes it's not always apparent, and then sometimes it's easy to reproduce.  After hitting the clear button, try just touching in various places to the right of the button and you should see the numeric keyboard symbol come up in the top right hand corner.  Incidentally, can't seem to reproduce using the touchpad and cursor - you have to physically touch the screen.

 

 

Retired
Posts: 856
Registered: ‎07-15-2008
My Device: Passport
My Carrier: Bell

Re: Keyboard/Menu options still appearing after element has been destroyed.

Ah, I see the problem now. You do have to touch the screen. Do you want to submit this to the issue tracker so you can see progress on the issue?

 

We may only be able to come up with a workaround. 

 

I don't see this problem on the PlayBook at least so there shouldn't be a problem on the new platform.

Tim Windsor
Open Source Technical Lead
New Developer
Posts: 57
Registered: ‎08-08-2008
My Device: Not Specified

Re: Keyboard/Menu options still appearing after element has been destroyed.

Good news Tim

 

Will get it logged on issue tracker.....workaround would be great if there is one as our users keep getting in a pickle with this one!

 

Thanks