03.03.2021, 14:02
Add hide-widget class to all buttons, add to custom JS:
This will keep the original event that sends an object value and will close the widget when clicked.
Code:
$(function() {
$('.hide-widget').on('vclick', hideWidgets);
});