primeng icon indicating copy to clipboard operation
primeng copied to clipboard

BlockUI does not targets to p-dataTable and crashes after first load

Open LsKLele opened this issue 9 years ago • 3 comments

I'm submitting a ... (check one with "x")

[X ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports) Please fork the plunkr below and create a case demonstrating your bug report. Issues without a plunkr have much less possibility to be reviewed.

http://plnkr.co/edit/uVpOtiYw7jEctdoS6afC?p=preview

Current behavior

  1. BlockUI does not correctly block the target (p-dataTable), it covers the body instead
  2. BlockUI crashed when trying to show it again

Expected behavior

  1. append BlockUI to p-dataTable
  2. show BlockUI each time it is needed

Minimal reproduction of the problem with instructions

  1. when loading the component, BlockUI works but seems to be appended to the document body and not to p-dataTable
  2. Just click on the "load" button and BlockUI crashes: "Cannot set property 'position' of undefined"

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Windows 7 Chrome 55.0.2883.87 m

  • Angular version: 2.2.4
  • PrimeNG version: 1.0.1
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5]

  • Node (for AoT issues): node --version =

LsKLele avatar Dec 16 '16 11:12 LsKLele

I have a similar issue but I'm not trying to block a p-datatable but a p-fileupload. Even the example at http://www.primefaces.org/primeng/#/blockui with p-panel returns Cannot set property 'position' of undefined I'm using v1.1.4

pmeems avatar Feb 19 '17 16:02 pmeems

Please try with the latest PrimeNG version and comment if the issue still persists.

Mrtcndkn avatar May 11 '17 12:05 Mrtcndkn

Which version has getBlockableElement implemented in p-panel? 4.0.1?

Well I was using target="myelem" instead of [target]="myelem". Please Ignore

sabithpocker avatar May 30 '17 07:05 sabithpocker