BlockUI does not targets to p-dataTable and crashes after first load
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
- BlockUI does not correctly block the target (p-dataTable), it covers the body instead
- BlockUI crashed when trying to show it again
Expected behavior
- append BlockUI to p-dataTable
- show BlockUI each time it is needed
Minimal reproduction of the problem with instructions
- when loading the component, BlockUI works but seems to be appended to the document body and not to p-dataTable
- 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=
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
Please try with the latest PrimeNG version and comment if the issue still persists.
Which version has getBlockableElement implemented in p-panel? 4.0.1?
Well I was using target="myelem" instead of [target]="myelem". Please Ignore