tiny-vue icon indicating copy to clipboard operation
tiny-vue copied to clipboard

🐛 [Bug]: The button's autofocus function doesn't seem to work

Open hiasky opened this issue 3 years ago • 1 comments

Version

latest

Vue Version

Vue3

Link to minimal reproduction

What does the autofocus feature of the button mean? It doesn't seem to show the effect. https://opentiny.design/tiny-vue/zh-CN/os-theme/components/button#autofocus

Step to reproduce

https://github.com/opentiny/tiny-vue/assets/103343025/a4aef1ac-4ee8-4c3e-9957-b6c4834cd757

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

hiasky avatar Sep 27 '23 11:09 hiasky

@Binks123 After setting autofocus, the button will automatically be in focus, and you can press Enter directly to start the click event of the button. And the button in the focus state will show a blue border and a blue font color.

kagol avatar Sep 27 '23 13:09 kagol