lobe-chat
lobe-chat copied to clipboard
๐ fix: the input box is prone to losing focus
๐ป ๅๆด็ฑปๅ | Change Type
- [ ] โจ feat
- [x] ๐ fix
- [ ] โป๏ธ refactor
- [ ] ๐ style
- [ ] ๐จ chore
- [ ] ๐ docs
๐ ๅๆด่ฏดๆ | Description of Change
Close #833
้ฒๆญข่พๅ ฅๆกๆปๆฏๅคฑ็ฆ
๐ ่กฅๅ ไฟกๆฏ | Additional Information
https://github.com/lobehub/lobe-chat/assets/29084441/867b26fe-c16b-4672-8b72-631322f60119
@mushan0x0 is attempting to deploy a commit to the LobeHub Team on Vercel.
A member of the Team first needs to authorize it.
๐ @mushan0x0
Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
้ๅธธๆ่ฐขๆจๆๅบๆๅ่ฏทๆฑๅนถไธบๆไปฌ็็คพๅบๅๅบ่ดก็ฎ๏ผ่ฏท็กฎไฟๆจๅทฒ็ป้ตๅพชไบๆไปฌ็่ดก็ฎๆๅ๏ผๆไปฌไผๅฐฝๅฟซๅฎกๆฅๅฎใ
ๅฆๆๆจ้ๅฐไปปไฝ้ฎ้ข๏ผ่ฏท้ๆถไธๆไปฌ่็ณปใ
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
5e7985a
) 84.94% compared to head (60f148a
) 85.02%. Report is 1 commits behind head on main.
:exclamation: Current head 60f148a differs from pull request most recent head 086bd7d. Consider uploading reports for the commit 086bd7d to get more accurate results
Additional details and impacted files
@@ Coverage Diff @@
## main #834 +/- ##
==========================================
+ Coverage 84.94% 85.02% +0.07%
==========================================
Files 167 168 +1
Lines 7501 7539 +38
Branches 760 768 +8
==========================================
+ Hits 6372 6410 +38
Misses 1129 1129
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
็น topic searchใ่ฟๆ alt ๅๅป topic ๅข๏ผ
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
Click topic search, and alt double-click topic?
็น topic searchใ่ฟๆ alt ๅๅป topic ๅข๏ผ
้ฝOK๏ผ้ค้็นไบๅซ็่พๅ ฅๆก๏ผๅฆๅไธไผๅคฑๅป็ฆ็น
https://github.com/lobehub/lobe-chat/assets/29084441/06e187cd-a9c9-43a9-bc9a-ce9075a80d21
ๆนไบไธ๏ผ็ฐๅจๅฏไปฅๅ จ็จๆฏ่็ฆ็ถๆไบ
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
I changed it and now it can be in focus the whole time.
@arvinxx ็็ๅข๏ผ้ๆฐ็จ้ผ ๆ ไบไปถๅฎ็ฐไบไธไธ๏ผๅฎๅ จๆจกๆๅพฎไฟก็็ฆ็น้ป่พ
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
@arvinxx Letโs take a look. We implemented it again using mouse events, completely simulating WeChatโs focus logic.
@arvinxx ๆต่ฏๅๆณจ้ๅ ๅฅฝไบ
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
@arvinxx tests and comments added
็จๅฟซๆท้ฎ่็ฆๅคชๅคไฝไบๅง๏ผๅๅพฎไฟกqq่ฟๆ ท็็ฆ็นๅง็ปๅจ่พๅ ฅๆกๅบ่ฏฅๆฏๆๅฅฝ็๏ผๅณไฝฟ็นๆฅ็นๅป๏ผ่ฟๆฏๅฏไปฅ็ดๆฅ่พๅ ฅๅ ๅฎน
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
It is too redundant to use shortcut keys to focus. It should be best to always focus on the input box like WeChat QQ. Even if you click here and there, you can still input content directly.
The latest updates on your projects. Learn more about Vercel for Git โ๏ธ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
lobe-chat | โ Ready (Inspect) | Visit Preview | ๐ฌ Add feedback | Dec 29, 2023 8:44am |
ๆ bug, ็ผ่พๆถๆฏ็ๆถๅๆ ๆณ focus, ๅผน็ช้็ input ๅ textarea ไนๆฏ @mushan0x0
https://lobe-chat-git-fork-mushan0x0-fix-input-blur-lobehub.vercel.app
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
There is a bug, unable to focus when editing a message
ๅค็ฐๆนๆณ, ๅฝๆๅคไธช input ๅบๅๅบ็ฐ็ๆถๅ
ๅปบ่ฎฎๆนๆๅชๅจๅๆข ๅฉๆ ๅ topic ๆถๅไธๆฌกๆง็่็ฆ
ๆ่งๅๆฏ vercel ้ข่ง็ฏๅขๅฏผ่ด็๏ผๆๅ ็็ๅฅๆ ๅต
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
It is recommended to only do one-time focus when switching assistants and topics.
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
It feels like it's caused by the vercel preview environment. I'll check what's going on first.
@canisminor1990 https://lobe-chat-1-32b9htu5s-mushan0x0.vercel.app/chat ๆ่ชๅทฑ่ฟไธช้ข่ง็ฏๅขๅฎๅ จๆฒก้ฎ้ขๅข๏ผไฝ ่ฟไธชๅฐๅไปฃ็ ๆฏๆๆฐ็ๅ
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
@canisminor1990 https://lobe-chat-1-32b9htu5s-mushan0x0.vercel.app/chat My own preview environment is completely fine. Is your address code up to date?
https://lobe-chat-1-32b9htu5s-mushan0x0.vercel.app/chat
ๆฒกๆ้
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
https://lobe-chat-1-32b9htu5s-mushan0x0.vercel.app/chat
No permission
@canisminor1990 https://lobe-chat-1-32b9htu5s-mushan0x0.vercel.app/chat ๆ่ชๅทฑ่ฟไธช้ข่ง็ฏๅขๅฎๅ จๆฒก้ฎ้ขๅข๏ผไฝ ่ฟไธชๅฐๅไปฃ็ ๆฏๆๆฐ็ๅ
ๆ่ฟไธชๅฐๅๅฐฑๆฏ่ฟไธชpr็้ข่ง
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
@canisminor1990 https://lobe-chat-1-32b9htu5s-mushan0x0.vercel.app/chat My own preview environment is completely fine. Is your address code up to date?
My address is the preview of this PR
ไฝ ่ฏ่ฏๅฝๅญๅจ้ฃไธช่ฆๆฑไฝ ่พๅ ฅๅฏ็ ็api็ๆถๆฏๅญๅจๆถ๏ผไฝ ๅ็น็ผ่พๆถๆฏ
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
You try when there is a message asking you to enter the password box api, and then click edit message