facebook

Binding to event attribute 'onLabel' is disallowed for security reasons

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

    andrei-ivanov
    Participant

    Hi,
    After upgrading to the pre-release (1.8.1.201705290950) I noticed a new error:
    Binding to event attribute ‘onLabel’ is disallowed for security reasons, please use (Label)=…

    I think it’s a false positive, I don’t think any binding is intented here:
    <p-inputSwitch onLabel="I confirm" offLabel="I reject" [(ngModel)]="val"></p-inputSwitch>

    See https://www.primefaces.org/primeng/#/inputswitch

    #524840 Reply

    support-swapna
    Moderator

    Andrei,

    The error is due to the prefix ‘on’ in the attribute ‘onLabel’, which is a known issue and not specific to the pre-release :
    https://github.com/500tech/angular-tree-component/issues/223
    https://github.com/valor-software/ngx-bootstrap/issues/1000

    I see the error in CI 5 as well at my end when I use the prefix ‘on’. Please rename the attribute as a workaround.

    Hope this helps. Let us know if you have any questions.

    –Swapna
    MyEclipse Support

    #524846 Reply

    andrei-ivanov
    Participant

    Hi,
    As mentioned in my message above, that is not my component, but a component from PrimeNg.

    And I don’t think attributes with a ‘on’ prefix are forbidden…

    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), a lot of them wrong, as far as I understand, hence my reports 🙂

    #524847 Reply

    support-piotr
    Participant

    Andrei,

    We are considering to fix this issue for the release, as this is a serious issue. It looks like it is happening with the newest versions of angular. We’ll keep you posted. Thanks for letting us know about it!

    Best regards,
    Piotr Tomiak

    #524849 Reply

    andrei-ivanov
    Participant

    Thank you too, I’m impressed by the level of support 🙂

    #525278 Reply

    Brian Fernandes
    Moderator

    Andrei,

    Thank you for the compliment!

    We just put out another pre release with a fix to this issue, could you check for updates using help > webclipse > check for updates and let us know if fixed?

    We’d like to release this build to everyone in the next 12 – 16 hours, so if you could let us know asap, that would be much appreciated!

    #525284 Reply

    andrei-ivanov
    Participant

    Hi,
    I’ve upgraded and that warning has disappeared, great 🙂

    Next step: https://www.genuitec.com/forums/topic/unknown-attributes-warning/ ?

    Thank you

    #525357 Reply

    support-piotr
    Participant

    Andrei,

    I’ve just made the fix for “id” and “name”, somehow I misunderstood what you’ve meant in your post. The fix will be available in the release.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Binding to event attribute 'onLabel' is disallowed for security reasons

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