Skip to content

Commit 0d9718c

Browse files
authored
fix(Toast): fixed the bg color error when showOverlay and preventScrollThrough are true (#3948)
1 parent 2250a08 commit 0d9718c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/toast/toast.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
z-index="{{overlayProps && overlayProps.zIndex || 11000}}"
3434
duration="{{overlayProps && overlayProps.duration || 300}}"
3535
usingCustomNavbar="{{overlayProps && overlayProps.usingCustomNavbar || usingCustomNavbar}}"
36-
backgroundColor="{{preventScrollThrough ? 'transparent' : overlayProps && overlayProps.backgroundColor || ''}}"
36+
backgroundColor="{{!showOverlay && preventScrollThrough ? 'transparent' : overlayProps && overlayProps.backgroundColor || ''}}"
3737
preventScrollThrough="{{preventScrollThrough || overlayProps && overlayProps.preventScrollThrough}}"
3838
/>

0 commit comments

Comments
 (0)