fix eui-modal-open class not getting removed when programatic modal is closed