Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VaInput doesn't expose focus method #2894

Closed
m0ksem opened this issue Jan 25, 2023 · 0 comments
Closed

VaInput doesn't expose focus method #2894

m0ksem opened this issue Jan 25, 2023 · 0 comments
Labels
BUG Something isn't working d3: medium No cheats. Monsters a bit faster.

Comments

@m0ksem
Copy link
Collaborator

m0ksem commented Jan 25, 2023

Looks like it is just returned in setup state. We must use expose() method. The same might be with Select and other components.

Otherwise, for now, it is impossible to call

const input = ref<typeof VaInput>()
input.focus()
// only input.setupState.focus() works.
@m0ksem m0ksem added BUG Something isn't working d3: medium No cheats. Monsters a bit faster. labels Jan 25, 2023
m0ksem added a commit to m0ksem/vuestic-ui that referenced this issue Feb 18, 2023
m0ksem added a commit to m0ksem/vuestic-ui that referenced this issue Feb 18, 2023
m0ksem added a commit to m0ksem/vuestic-ui that referenced this issue Feb 18, 2023
m0ksem added a commit that referenced this issue Feb 20, 2023
* fix(#2894): dispatch focus event when focus

* fix(#2894): dispatch event demo

* fix(#2894): focus element in select and counter

* fix(select): deep focus recursion
@m0ksem m0ksem closed this as completed Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working d3: medium No cheats. Monsters a bit faster.
Projects
None yet
Development

No branches or pull requests

1 participant