Add conditional dismissable attribute