This should probably be renamed to `dialogOpenClass` to avoid the confusion of having modal in the option name.