[ZBX-23073] Resizing the URL widget can cause the click to be stuck, and can create console errors on a pointer movement Created: 2023 Jul 07  Updated: 2024 Jul 01  Resolved: 2024 Jul 01

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.0.19, 6.4.4, 7.0.0alpha3
Fix Version/s: 6.0.32rc1, 6.4.17rc1, 7.0.1rc1, 7.2.0alpha1

Type: Problem report Priority: Trivial
Reporter: Nikita Gogolevs Assignee: Anna Poga
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: GIF File console-error-dynamic-widget-url.gif     GIF File resizing-url-widget-issue.gif    
Team: Team A
Sprint: S24-W26/27
Story Points: 1

 Description   

When resizing the URL widget, there is a possibility that click can stuck in resizing functionality (won't be necessary to keep holding the button to continue adjusting the size of the widget).

In such scenario, if user will click on the dashboard outside the URL widget - the console errors will be appearing on the mouse movement, and no dashboard widget placeholder will be appearing, until user have not clicked on the initial widget again.

Steps to reproduce

  1. Open the Dashboard
  2. Add the URL widget with any data (if not previously added)
  3. Try to resize the widget - make it smaller horizontally
  4. While resizing, release the mouse button, see that window still resizing on the pointer movement
  5. Click on the Dashboard outside the URL widget
  6. Move the pointer, and observe the results

Result
Possible to resize the widget without holding the mouse button, and after clicking on the dashboard, the dashboard widget placeholder is not appearing and the errors are displayed in the console:

Uncaught Error: Source position must not overlap with the target position.
Uncaught TypeError: Cannot read properties of null (reading 'getView')

See video:

Expected:
Resizing for URL widget should be working same as for other widgets, and should be possible only while mouse button is held.



 Comments   
Comment by Anna Poga [ 2024 Jun 27 ]

Available in versions:

Generated at Fri Jan 10 04:17:26 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.