How to remove an item from a paper-listbox?

Issue

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?

Solution

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

Answered By – stommestack

Answer Checked By – Candace Johnson (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *