AdminLTE icon indicating copy to clipboard operation
AdminLTE copied to clipboard

[BUG] Random issue when clicking on button

Open lenamtl opened this issue 2 years ago • 11 comments

Hi,

Go to https://adminlte.io/themes/v3/index.html Go to sales box, click on Donut button click on Area button randomly the click is not triggering or not clicking so we have to click a second time or a third time on the button No JS error into the console.

https://user-images.githubusercontent.com/2241324/176235840-32f2165c-23dd-41ed-b1ae-0bef7c368626.mp4

Note: I have encounter this issue elsewhere (menu and toggle) but I don't recall where exactly, I will do more test and let you know.

lenamtl avatar Jun 28 '22 16:06 lenamtl

That isn't a bug due AdminLTE, this happens only if you enter the drag event and after it's finished you can click again.

REJack avatar Jun 28 '22 17:06 REJack

I have encounter this same issue on menu item and toggle. I don't know about the drag item event I'm just testing the page the way it is coded without draging the item. And sometimes it occured on page load. So page load I click on donut and nothing happen.

lenamtl avatar Jun 28 '22 17:06 lenamtl

Do you trigger an error if nothing happens on click?

REJack avatar Jun 28 '22 17:06 REJack

I'm just testing your demo page and keep the console open. No error into the console during the tests. I'm just clicking on the button after page load.

lenamtl avatar Jun 28 '22 17:06 lenamtl

uninstall and install chrome browser @lenamtl

danny007in avatar Jun 28 '22 17:06 danny007in

@danny007in There is no reason to uninstall Chrome for this and this also happening on Opera.

lenamtl avatar Jun 28 '22 18:06 lenamtl

It's not chrome itself :D I can replicate it with firefox too

REJack avatar Jun 28 '22 18:06 REJack

I will check it in the next days, but I guess it's caused by bootstrap's own JS. I can only barly reproduce it, almost 1 of 50 clicks it happens.

REJack avatar Jun 28 '22 19:06 REJack

Any news?

lenamtl avatar Jul 04 '22 18:07 lenamtl

I've tested it on various machines/OSes. I think we would need a dedicated drag-button instead of using the card header for it, that could be the fix for it, simple and easy 😉

REJack avatar Jul 12 '22 10:07 REJack

Ok I see, this make sense, thanks

lenamtl avatar Jul 12 '22 15:07 lenamtl