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

n-select selected option not in view when set procedurally in the model #346

Closed
wc-matteo opened this issue Jul 1, 2021 · 0 comments · Fixed by #348
Closed

n-select selected option not in view when set procedurally in the model #346

wc-matteo opened this issue Jul 1, 2021 · 0 comments · Fixed by #348
Labels
bug Something isn't working

Comments

@wc-matteo
Copy link

wc-matteo commented Jul 1, 2021

TuSimple/naive-ui version (版本)

2.15.1

Vue version (Vue 版本)

3.1.2

Browser and its version (浏览器及其版本)

chrome v91.0.4472.124

System and its version (系统及其版本)

Windows 10

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/old-dust-5e4j1?file=/src/Demo.vue

Reappearance steps (重现步骤)

click on the n-select to open the options dropdown
notice the selected option

Expected results (期望的结果)

the selected option is visible in the results

Actual results (实际的结果)

the selected option is not visibile and you need to scroll to find it

Remarks (补充说明)

if you use the n-select and set the option while using the control, then it's correct: when you open the dropdown the option is there in the view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants