facebook

Unknown attributes warning

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #525054 Reply

    andrei-ivanov
    Participant

    Hi,
    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.

    #525055 Reply

    andrei-ivanov
    Participant

    Ignore the ‘onLabel’ stuff, copy/paste error ?

    #525356 Reply

    support-piotr
    Participant

    Andrei,

    This will be fixed in the release. Thanks for reporting.

    #525362 Reply

    andrei-ivanov
    Participant

    Even the selector attributes like pInputTextarea?

    #525363 Reply

    support-piotr
    Participant

    That one should actually be fixed in the version already released.

    #525364 Reply

    andrei-ivanov
    Participant

    Hmm, but I see the warnings now, with the latest pre-release, so it doesn’t seem fixed.

    #525365 Reply

    support-piotr
    Participant

    Do you have InputTextareaModule imported in your NgModule or Component ?

    #525366 Reply

    andrei-ivanov
    Participant

    Yes, I do 🙂
    The app runs fine, otherwise the compiler would fail too (both ng serve and ng build –prod and ng lint –type-check)

    #525370 Reply

    support-piotr
    Participant

    I 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?

    #525371 Reply

    andrei-ivanov
    Participant

    Hmm,
    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.

    #525380 Reply

    support-piotr
    Participant

    Nice, so the warning was actually valid 🙂 I am glad we did those improvements based on your reports. Thanks!

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Unknown attributes warning

You must be logged in to post in the forum log in