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

fix(Autocomplete): fix highlight method in autocomplete fails to navigate to the specified line #22774

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

YOUUJUN
Copy link

@YOUUJUN YOUUJUN commented Dec 13, 2023

希望调用 AutoComplete 中的 highlight 方法来将列表滚动至指定的高亮行,但是只会导致指定的行有高亮的效果,不能滚动到指定的行位置
const autocomplete = this.$refs.autocomplete;
const inputElm = autocomplete.$el.querySelector("input");
inputElm.focus();
setTimeout((_) => {
autocomplete.highlight(8);
}, 500);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant