03-02-2010 03:44 PM
If I push several items to my widget at once, I lose functionality. I can have my combobox selected and a click will do nothing. If I close my widget and then restart, everything functions as expected. I've tried giving it time (might be processing the incoming data), but after several minutes I can still not interact with anything (buttons, selects, etc...).
Any idea? I'm going to move my push catching code to a workerpool eventually, but right now I can't run anything using Gears in my widget simulators (yet another issue).
03-03-2010 04:59 PM
I think I've found the issue for the loss of interaction.
Whenever I perform any type of writing to the DOM (innerHTML) I lose focus from my Select/combobox and can never get back to that element.
My select is the only element on the page that has x-blackberry-focusable="true" , and is the only focusable element on the page (no a hrefs, etc...).
Does it make sense that after any DOM manipulation I would have to call blackberry.focus.setFocus(mySelect)?
03-03-2010 05:30 PM
I know that after any DOM manipulation event the focus navigation re-indexes based on what the HTML now looks like. I'm not sure if it will retain what the currently focused item was before the DOM manipulation.
I can ask the development team, but for now you may have to call setFocus() after your DOM manipulation.