Skip to content

Commit

Permalink
fix: input type=number 时,不触发 input 事件
Browse files Browse the repository at this point in the history
  • Loading branch information
StrivingRabbit committed May 11, 2024
1 parent 37fd0e1 commit 05dcb44
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/uni-components/src/vue/input/index.tsx
Expand Up @@ -156,19 +156,6 @@ export default /*#__PURE__*/ defineBuiltInComponent({
)
if (typeof res === 'boolean') return res

if (cache.value === input.value) return false

if (__PLATFORM__ === 'app') {
// iOS 会带着 . 传递给 input
if (
(event as InputEvent).inputType === 'deleteContentBackward' &&
plus.os.name === 'iOS'
) {
input.value.slice(-1) === '.' &&
(input.value = input.value.slice(0, -1))
}
}

cache.value = input.value
}

Expand Down

0 comments on commit 05dcb44

Please sign in to comment.