Open xileftenurb opened 6 years ago
by using a promise, the emit is delayed in a microtask. It give the time to the browser to set the offsetWidth, so the eventEmitter can send the good value when toggling on and off.
by using a promise, the emit is delayed in a microtask. It give the time to the browser to set the offsetWidth, so the eventEmitter can send the good value when toggling on and off.