Hi
I use the left and right keys to update a list items inside a UL list.
I have the setNavigationEnabled = false.
When the actual list have more items (li) than the next list and the selected item in the actual list is (n+1) or more (n= number of items in the next list) the WRT runtime crash whe I change the list using the left and right keys.
left and right keys allow navigation changing selected item and I use the same keys for update the content.
Example
First list 4 items
Second list 2 items
The first list is displayed
<ul>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
<li>item 4</li>
</ul>
and the item 4 is highlighted
press the right key, that trigger 2 things:
-the WRT behavior that change the highlighted item from 4 to 3.
-and the event that I trigger: update the list content, so now the list displayed is:
<ul>
<li>item 1</li>
<li>item 2</li>
</ul>
Now, the list have 2 items, but the WRT try to select the third, since the third don´t exists, the WRT crash.
any way to avoid that? (keeping the left and rigth keys) using non navigation keys don´t show this behavior.

Reply With Quote


