timc1 / kbar

fast, portable, and extensible cmd+k interface for your site
https://kbar.vercel.app
MIT License
4.87k stars 184 forks source link

unable to input Chinese correctly #327

Closed halleystar closed 8 months ago

halleystar commented 1 year ago

there is a bug in kbar. I only wanted to input the Chinese characters '你好'. but kbar also included the Pinyin input I used to spell '你好'. The correct look should only contain "你好" and not contain any characters in front of "你好" image

timc1 commented 1 year ago

What version of kbar are you using?

https://github.com/timc1/kbar/assets/12195101/5fdb6538-bf33-4859-9b79-874d7ae68d5d

halleystar commented 1 year ago

Hey all! This is the version i reference: "kbar": "^0.1.0-beta.41". But the issue still exists 动画

windily-cloud commented 1 year ago

I have same issue, 0.1.0-beta-42, this is sandbox demo:

https://codesandbox.io/s/kbar-test-fx6894?file=/src/index.js

https://github.com/timc1/kbar/assets/30640638/1cac5aa3-469e-4332-b5d3-54c9f844194e

Thx for any reply.

thekoc commented 1 year ago

Same problem here

life-plant commented 1 year ago

I found the same problem, and then I found that using ReactDOM.createRoot(document.getElementById("root")!).render(xxx) to create a react project in a react 18 project will cause KBarSearch fail to input Chinese, but there is no problem with using ReactDOM.render(xxx). react 17 is also no problem, because it is also created project with ReactDOM.render(xxx).

donghoon-lee-mrt commented 1 year ago

Same issue when I try to input Korean.

liruifengv commented 1 year ago

+1

stale[bot] commented 8 months ago

Hey! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.