Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e0a067e

Browse files
authored
Merge pull request #1 from leadream/patch-1
zIndex and top do not work at 0 when zIndex and top are 0, causes the condition to be fasle, then the global configuration is invalid.
2 parents 3afad9d + 34af385 commit e0a067e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/components/message.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var Message = function (options) {
2828
}
2929

3030
if (
31-
options.zIndex
31+
'zIndex'inoptions
3232
&& typeof options.zIndex === 'number'
3333
&& options.zIndex > -1
3434
) {
@@ -64,7 +64,7 @@ var Message = function (options) {
6464
? nextZIndex++
6565
: optsZIndex
6666
if (
67-
global.top
67+
'top'inglobal
6868
&& typeof global.top === 'number'
6969
) {
7070
instance.dom.style.top = `${global.top}px`
@@ -76,7 +76,7 @@ var Message = function (options) {
7676
Message.config = function (options) {
7777
global = options || {}
7878
if (
79-
global.zIndex
79+
'zIndex'inglobal
8080
&& typeof global.zIndex === 'number'
8181
&& global.zIndex > -1
8282
) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /