Jop V. Jop V. - 2 months ago 14
Dart Question

How to remove an item from a paper-listbox?

I can add an item to a

paper-listbox
with

Polymer.dom($['mylistbox']).append(paperItem);


However I'm having trouble deleting it from the list afterwards. I tried:

paperItem.remove();


That initially makes it dissapear, but it appears again after selecting another item in the list. How do I remove a
paper-item
from a listbox?

Answer
Polymer.dom($['mylistbox']).removeChild(paperItem);