mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
不再自动聚焦定时退出、调整位置弹窗内的输入框
This commit is contained in:
parent
e503f8db9a
commit
07e4be2b5a
@ -1,3 +1,3 @@
|
||||
### 修复
|
||||
### 变更
|
||||
|
||||
- 修复随机播放下无法切歌的问题
|
||||
- 不再自动聚焦定时退出、调整位置弹窗内的输入框,这应该可以修复某些设备无法在这两个地方弹出键盘的问题
|
||||
|
@ -33,7 +33,7 @@ export default memo(({ visible, hideModal, onConfirm, selectedList, selectedData
|
||||
if (!visible) return
|
||||
|
||||
setText('')
|
||||
inputRef.current.focus()
|
||||
// inputRef.current.focus()
|
||||
}, [visible])
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user