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

9.x: NcTextArea generates lots of warnings #6116

Open
hschletz opened this issue Sep 23, 2024 · 1 comment
Open

9.x: NcTextArea generates lots of warnings #6116

hschletz opened this issue Sep 23, 2024 · 1 comment

Comments

@hschletz
Copy link

NcTextArea generates a warning in the browser console upon initialization and every subsequent keystroke:

[Vue warn]: Property "type" was accessed during render but is not defined on instance. 
  at <NcTextArea  ...

I think it's caused by this code in src/components/NcTextArea/NcTextArea.vue:

<textarea v-bind="$attrs"
	:id="computedId"
	ref="input"
	class="textarea__input"
	:type="type"
	...

There is no "type" prop/variable defined for that component, thus the warning. The line also makes no sense because the <textarea> element does not have a "type" attribute. I think the line should be removed. It probably slipped in via copy&paste from another input component.

Unfortunately, I cannot test this because local build fails for whatever reason.

@hschletz
Copy link
Author

Just noticed that the warning only occurs on 9.x, but the :type="type" line is also present in master (also without a corresponding prop/variable). Looks like Vue3 reveals a preexisting problem.

@hschletz hschletz changed the title NcTextArea generates lots of warnings 9.x: NcTextArea generates lots of warnings Sep 25, 2024
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

No branches or pull requests

1 participant