question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Blockui: resetPositionCallback is not executed if the duration is undefined

See original GitHub issue

Describe the bug

The resetPositionCallback is not executed in “hide” call if the duration is undefined. It really does nothing (master, blockui.js)

this.content.hide(duration, resetPositionCallback);

Fadeout works fine.

Reproducer

  1. open Primefaces demo
  2. go to blockui page
  3. execute this code in console PF('buiDatatable').cfg.animate = false;
  4. put the breakpoint to resetPositionCallback (components.js)
  5. Change a page in the Custom content table.
  6. never catched

Expected behavior

No response

PrimeFaces edition

Community

PrimeFaces version

12.0.0

Theme

No response

JSF implementation

Mojarra

JSF version

2.3

Java version

11

Browser(s)

Chromium 106.0.5249.119

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
mellowarecommented, Nov 22, 2022

OK i just tested it too it is working. Odd that they aren’t using falsy behvior and looking for undefined explicitly.

0reactions
vonnaicommented, Nov 22, 2022

0 works well, I have tried it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jQuery blockUI not working - Stack Overflow
Try to move the unblock function in the complete/done function of the ajax call. ... will not work, i set asynch:true and BlockUI...
Read more >
BlockUI Not Firing Before Ajax Requests · Issue #686 - GitHub
On my pages that use tableSorter with ajaxProcessing, I cannot get the blockUI to run. I've added in the ajaxObject, in the beforeSend...
Read more >
Trouble getting around jQuery blockUI - Synthetic
I have been having a lot of trouble reliably getting around the jQuery blockUI plugin. The page I am working on uses them...
Read more >
jQuery BlockUI Plugin - malsup.com
The jQuery BlockUI Plugin lets you simulate synchronous behavior when using AJAX , without locking the browser ... This is usually not a...
Read more >
BlockUI | PrimeFaces JavaScript API Docs
The configuration of this widget instance. Please note that no property is guaranteed to be present, you should always check for undefined before...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found