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

"Setting is the same device is not allowed" not preventable #572

Open
rala72 opened this issue Sep 12, 2024 · 0 comments
Open

"Setting is the same device is not allowed" not preventable #572

rala72 opened this issue Sep 12, 2024 · 0 comments
Labels

Comments

@rala72
Copy link

rala72 commented Sep 12, 2024

Describe the bug
Once you declare the input attribute [(device)] (or [device]) you will get this warning. It is even present in your own demo page: https://zxing-js.github.io/ngx-scanner

To Reproduce
Steps to reproduce the behavior:

  1. Declare component with [(device)] and create a <select> to select the device
  2. Check console

Expected behavior
No warning message to tell me, that angular change detection triggered or a way to prevent it.

Currently using 17.0.4, but also many other versions are affected.
I get that the other warnings mentioned in #204 make sense, but this seems to always be happen if angular change detection triggers once.
I think Angular can handle the change detection well so I would just remove the log message,
but if there is any way to keep the warning while preventing this message from happening, it would be awesome as well.

console.warn('Setting the same device is not allowed.');

@rala72 rala72 added the bug label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant