Issue with timing an exposed state

As a general rule of thumb when designing plugin elements, publishState(s) and triggerEvent should be called in pairs. Heuristically it is the “You’ve got mail” notification.