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

[Nz-Switch] Focused component when loading, the component is still accessible #2787

Closed
DouglasOGarrido opened this issue Jan 15, 2019 · 0 comments · Fixed by #2896
Closed

Comments

@DouglasOGarrido
Copy link

DouglasOGarrido commented Jan 15, 2019

Version

7.0.0-rc.3

Environment

Windows 10, Chrome 71.0.3578.98

Reproduction link

https://stackblitz.com/edit/angular-6qcf8y?file=src/app/app.component.ts

Steps to reproduce

Focus on the component and press SPACEBAR, the switch value changes.

What is expected?

When the component is loading, focus on him and press SPACEBAR, the component shouldn't not be accessible.

What is actually happening?

When the component is loading, focus on him and press SPACEBAR, the component is still accessible and changes value.

Other?

This only works when the option "nzControl" is true.

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

Successfully merging a pull request may close this issue.

2 participants