[bugfix] Toast: mask render uncorrectly when forbidClick (#1154)

This commit is contained in:
neverland
2018-05-24 14:25:55 +08:00
committed by GitHub
parent aa89f1a26c
commit 6d1c0ef2a5
4 changed files with 51 additions and 11 deletions
-4
View File
@@ -33,10 +33,6 @@ function createInstance() {
// transform toast options to popup props
function transformer(options) {
options.overlay = options.mask;
if (options.forbidClick && !options.overlay) {
options.overlay = true;
options.overlayStyle = { background: 'transparent' };
}
return options;
}