Skip to content
Discussion options

You must be logged in to vote

It's the click listener rather than mouseup, and there's no way to suppress it from Blazor markup right now.

QuickGrid puts two close handlers on document.body in QuickGrid.razor.js:

document.body.addEventListener('click', bodyClickHandler);
document.body.addEventListener('mousedown', bodyClickHandler); // Otherwise it seems strange that it doesn't go away until you release the mouse button

bodyClickHandler closes the popup whenever event.composedPath() doesn't include .col-options (src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor.js, lines 3 to 8, registered on lines 16 and 17). The mousedown half isn't your problem, since the press starts inside the…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pftcpq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants