Refresh Material Design Lite Open Menu

I am trying to find a way to update the Lite menus when they are open. For example, I have a shopping basket, and when the item is deleted when the menu opens, I want the menu to change to the user.

I tried using

componentHandler.upgradeDom();

But this does not resize the menus when they are open. Any ideas?

enter image description here

enter image description here

+4
source share

Source: https://habr.com/ru/post/1681468/


All Articles