Anshu Singh created NIFI-16548:
----------------------------------

             Summary: UI: Resize drag in property editor does not end when 
released over the disabled Ok button
                 Key: NIFI-16548
                 URL: https://issues.apache.org/jira/browse/NIFI-16548
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core UI
            Reporter: Anshu Singh
            Assignee: Anshu Singh


When resizing a property editor (for example ExecuteSQL > Properties > SQL 
Query) by
dragging the bottom-right handle, the drag sometimes does not end when the 
mouse button is released. The editor keeps resizing as the mouse moves until 
the next click.

Cause: during the drag the CDK moves the handle and the editor grows at the 
same time, so the handle runs ahead of the pointer and the pointer ends up over 
the editor's Ok button. When Ok is disabled (no changes made yet), the browser 
does not dispatch the mouseup on the disabled button, so the CDK drag never 
receives it and never ends.

Steps to reproduce
1. Add an ExecuteSQL processor and open Configure > Properties.
2. Open the editor for SQL Query without typing anything (Ok stays disabled).
3. Drag the bottom-right resize handle a little and release the mouse.
4. Move the mouse without clicking: the editor keeps resizing.

If text is typed first (Ok enabled), the drag ends normally.

This is the "drag gets stuck" part reported in NIFI-16221, split out per review 
on https://github.com/apache/nifi/pull/11827



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to