diff --git a/packages/uni-app-plus/dist/index.js b/packages/uni-app-plus/dist/index.js index 4f4db7ffd6b0b38adb018c2a13c06d2696f06708..58500876f35d87942b5cc1f805df4ff672c93c28 100644 --- a/packages/uni-app-plus/dist/index.js +++ b/packages/uni-app-plus/dist/index.js @@ -1093,7 +1093,11 @@ function handleEvent (event) { } }); - if (ret.length === 1) { + if ( + eventType === 'input' && + ret.length === 1 && + typeof ret[0] !== 'undefined' + ) { return ret[0] } } diff --git a/packages/uni-app-plus/package.json b/packages/uni-app-plus/package.json index eef4a7a13d59904d8353754c55397d947e9a8770..ffa3c1a85a78fa5ffa5f2e4233c66ebdeb6874ea 100644 --- a/packages/uni-app-plus/package.json +++ b/packages/uni-app-plus/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-app-plus", - "version": "0.0.248", + "version": "0.0.249", "description": "uni-app app-plus", "main": "dist/index.js", "scripts": { diff --git a/packages/uni-mp-alipay/dist/index.js b/packages/uni-mp-alipay/dist/index.js index 72c2e892eba9c26a8ebf03fbb812378508c3c0ea..655d85fd348e774d3810938af05f42ba4e6fa910 100644 --- a/packages/uni-mp-alipay/dist/index.js +++ b/packages/uni-mp-alipay/dist/index.js @@ -1458,7 +1458,11 @@ function handleEvent (event) { } }); - if (ret.length === 1) { + if ( + eventType === 'input' && + ret.length === 1 && + typeof ret[0] !== 'undefined' + ) { return ret[0] } } diff --git a/packages/uni-mp-alipay/package.json b/packages/uni-mp-alipay/package.json index b1a8999fa83f32e8a4fb4ecfdd11f1e1b20e035e..9d0d4b8139beac0e0c31189d046905e5aa147c49 100644 --- a/packages/uni-mp-alipay/package.json +++ b/packages/uni-mp-alipay/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-alipay", - "version": "0.0.822", + "version": "0.0.823", "description": "uni-app mp-alipay", "main": "dist/index.js", "scripts": { diff --git a/packages/uni-mp-baidu/dist/index.js b/packages/uni-mp-baidu/dist/index.js index 1a433e55290041012bf2172e55535f077d50c138..4c46829069ba325d6a7e9f570f602767972a71f6 100644 --- a/packages/uni-mp-baidu/dist/index.js +++ b/packages/uni-mp-baidu/dist/index.js @@ -1224,7 +1224,11 @@ function handleEvent (event) { } }); - if (ret.length === 1) { + if ( + eventType === 'input' && + ret.length === 1 && + typeof ret[0] !== 'undefined' + ) { return ret[0] } } diff --git a/packages/uni-mp-baidu/package.json b/packages/uni-mp-baidu/package.json index bb67464743a8af0e4f686c87e55025ae085b9c1a..a083e489d9ce7e941431e64dbbcbef405fa7234d 100644 --- a/packages/uni-mp-baidu/package.json +++ b/packages/uni-mp-baidu/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-baidu", - "version": "0.0.852", + "version": "0.0.853", "description": "uni-app mp-baidu", "main": "dist/index.js", "scripts": { diff --git a/packages/uni-mp-qq/dist/index.js b/packages/uni-mp-qq/dist/index.js index 569c26847b5855dd8018c415ea8866549d3b361c..ec95ae0a6948ef85f5c915280d7b62c6caae3524 100644 --- a/packages/uni-mp-qq/dist/index.js +++ b/packages/uni-mp-qq/dist/index.js @@ -1157,7 +1157,11 @@ function handleEvent (event) { } }); - if (ret.length === 1) { + if ( + eventType === 'input' && + ret.length === 1 && + typeof ret[0] !== 'undefined' + ) { return ret[0] } } diff --git a/packages/uni-mp-qq/package.json b/packages/uni-mp-qq/package.json index 4e90878d438a0b83b556ef046c800302396f72f2..5079bfb3620a6b7681c25e7fa5a1ac3f153d5511 100644 --- a/packages/uni-mp-qq/package.json +++ b/packages/uni-mp-qq/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-qq", - "version": "0.0.106", + "version": "0.0.107", "description": "uni-app mp-qq", "main": "dist/index.js", "scripts": { diff --git a/packages/uni-mp-toutiao/dist/index.js b/packages/uni-mp-toutiao/dist/index.js index a0e265aa1382fb167c39016be2237b598adc5eeb..1a0b2712a756a42bb734d89baec88e982ccb6a36 100644 --- a/packages/uni-mp-toutiao/dist/index.js +++ b/packages/uni-mp-toutiao/dist/index.js @@ -1238,7 +1238,11 @@ function handleEvent (event) { } }); - if (ret.length === 1) { + if ( + eventType === 'input' && + ret.length === 1 && + typeof ret[0] !== 'undefined' + ) { return ret[0] } } diff --git a/packages/uni-mp-toutiao/package.json b/packages/uni-mp-toutiao/package.json index 3516c3bf9d0ea7aadd6791b7476724bfff986ad2..704f47621297e4f7229ad0d1ff70c3eaf0642048 100644 --- a/packages/uni-mp-toutiao/package.json +++ b/packages/uni-mp-toutiao/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-toutiao", - "version": "0.0.346", + "version": "0.0.347", "description": "uni-app mp-toutiao", "main": "dist/index.js", "scripts": { diff --git a/packages/uni-mp-weixin/dist/index.js b/packages/uni-mp-weixin/dist/index.js index 7ef2aea183c371d96387347c586d458d7136f46c..bbbe2d6b0378cb3eb55085ea2783d0ef7c79fda5 100644 --- a/packages/uni-mp-weixin/dist/index.js +++ b/packages/uni-mp-weixin/dist/index.js @@ -1095,7 +1095,11 @@ function handleEvent (event) { } }); - if (ret.length === 1) { + if ( + eventType === 'input' && + ret.length === 1 && + typeof ret[0] !== 'undefined' + ) { return ret[0] } } diff --git a/packages/uni-mp-weixin/package.json b/packages/uni-mp-weixin/package.json index 160f36f48ab0f3eed3dea5340591ae8b8cf0813f..41934167c26fe29e3b1daf446d73a3fef4cff601 100644 --- a/packages/uni-mp-weixin/package.json +++ b/packages/uni-mp-weixin/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-weixin", - "version": "0.0.967", + "version": "0.0.969", "description": "uni-app mp-weixin", "main": "dist/index.js", "scripts": { diff --git a/src/core/runtime/wrapper/util.js b/src/core/runtime/wrapper/util.js index 9ad1e7d40d25fb39257374fcf9cf781d0a7c5eb9..5863d424008bb3b332c372426bc32087a8793cf9 100644 --- a/src/core/runtime/wrapper/util.js +++ b/src/core/runtime/wrapper/util.js @@ -509,7 +509,11 @@ export function handleEvent (event) { } }) - if (ret.length === 1) { + if ( + eventType === 'input' && + ret.length === 1 && + typeof ret[0] !== 'undefined' + ) { return ret[0] } }