不再自动聚焦定时退出、调整位置弹窗内的输入框

This commit is contained in:
lyswhut 2021-08-09 10:53:15 +08:00
parent e503f8db9a
commit 07e4be2b5a
3 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,3 @@
### 修复
### 变更
- 修复随机播放下无法切歌的问题
- 不再自动聚焦定时退出、调整位置弹窗内的输入框,这应该可以修复某些设备无法在这两个地方弹出键盘的问题

View File

@ -33,7 +33,7 @@ export default memo(({ visible, hideModal, onConfirm, selectedList, selectedData
if (!visible) return
setText('')
inputRef.current.focus()
// inputRef.current.focus()
}, [visible])

View File

@ -63,9 +63,9 @@ export default memo(() => {
const handleShowTimeoutAlert = () => {
setText(timeoutExit)
setVisibleAlert(true)
global.requestAnimationFrame(() => {
inputRef.current.focus()
})
// global.requestAnimationFrame(() => {
// inputRef.current.focus()
// })
}
const handleAlertHide = () => {
setVisibleAlert(false)