Barcelona CSP errors in PF8

Post Reply
Melloware
Posts: 2042
Joined: 22 Apr 2013, 15:48

02 Apr 2020, 20:52

See this PF ticket: https://github.com/primefaces/primefaces/issues/5712

CSP does not work in PF8 due to the Barca layout.js.

I documented my thoughts on why here: https://github.com/primefaces/primefaces/pull/5721
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 8.0.3 / PF Extensions 8.0.4

mert.sincan
Posts: 4121
Joined: 29 Jun 2013, 12:38

03 Apr 2020, 10:53

Hi Melloware,
I don't fully understand, but if you add a target name to 'off (click), is it resolved?

Code: Select all

this.menulinks.off('click.menuitem').on('click.menuitem', function(e) { // instead of off('click')

Melloware
Posts: 2042
Joined: 22 Apr 2013, 15:48

03 Apr 2020, 13:54

@Aragorn,

I went through all OFF click events in layout.js and gave them a correct qualifier and I have confirmed doing the above FIXED it!!

So this probably a daunting task but I think you need to go through every premium theme and for all "click" events add .off('click.xxx').on('click.xxx');

Mello
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 8.0.3 / PF Extensions 8.0.4

mert.sincan
Posts: 4121
Joined: 29 Jun 2013, 12:38

06 Apr 2020, 11:29

Thanks a lot @melloware ;)

Best Regards,

Post Reply

Return to “Barcelona - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest