- This topic has 10 replies, 2 voices, and was last updated 7 years, 5 months ago by support-piotr.
-
AuthorPosts
-
andrei-ivanovParticipantHi,
After upgrading to the pre-release (1.8.1.201705290950) I noticed warnings:
Binding to event attribute ‘onLabel’ is disallowed for security reasons, please use (Label)=…The upgrade to the pre-release fixed the TSLint errors I’ve been having and now the warnings are starting to be shown (so it doesn’t necessarily means it’s a regression)
I think these are false positives warnings:
Unknown attribute ‘id’. and Unknown attribute ‘name’ for something like:<p-dropdown id="transport" name="transport" [options]="transports" [(ngModel)]="shipment.transport" placeholder="Select" [style]="{'width':'200px'}" filter="filter" required></p-dropdown>
Also: Unknown attribute ‘pInputTextarea’ for
<textarea pInputTextarea id="cargo" name="cargo" [(ngModel)]="shipment.cargo" required></textarea>
See https://github.com/primefaces/primeng/search?utf8=%E2%9C%93&q=pInputTextarea&type=
And other similar with these.
andrei-ivanovParticipantIgnore the ‘onLabel’ stuff, copy/paste error ?
support-piotrParticipantAndrei,
This will be fixed in the release. Thanks for reporting.
andrei-ivanovParticipantEven the selector attributes like pInputTextarea?
support-piotrParticipantThat one should actually be fixed in the version already released.
andrei-ivanovParticipantHmm, but I see the warnings now, with the latest pre-release, so it doesn’t seem fixed.
support-piotrParticipantDo you have
InputTextareaModule
imported in your NgModule or Component ?
andrei-ivanovParticipantYes, I do 🙂
The app runs fine, otherwise the compiler would fail too (both ng serve and ng build –prod and ng lint –type-check)
support-piotrParticipantI am sorry, but I am unable to reproduce the issue locally. Did you clean the project to retrigger validation? Can you try reinstalling node_modules (run
rm -rf node_modules && npm install
) and than cleaning the project? If none of that works, can you share your package.json or best prepare small project to reproduce the issue?
andrei-ivanovParticipantHmm,
Good idea with the small project.
I was just creating it and when I wanted to copy/paste the InputTextModule import (as the warning I was seeing now was about pInputText), I couldn’t find it in my main project.The pInputText was the latest added in my template and I forgot to import it ?
Sorry for the noise, the warning is gone now with the import added.
support-piotrParticipantNice, so the warning was actually valid 🙂 I am glad we did those improvements based on your reports. Thanks!
-
AuthorPosts