Results 1 to 3 of 3

Thread: RowEditor errorSummary Tooltip does not handle show / hide correctly

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Oct 2014
    Posts
    14

    Default RowEditor errorSummary Tooltip does not handle show / hide correctly

    This bug exists since 6.2 (tested in 6.2.0, 6.2.1, 6.5)
    Example fiddles:
    i. https://fiddle.sencha.com/#view/editor&fiddle/237q (not working in 6.2)
    ii. https://fiddle.sencha.com/#view/editor&fiddle/237r (working in 6.0)

    Steps to reproduce:
    1) Click on a row in the grid to start the row editor.
    2) Switch tabs to P2 or P3
    3) Switch back to P1

    Expected Behavior:
    Switching back to P1 should work, no error should occur.

    Actual behavior:
    i) throws an error because the tooltip gets decoupled from the roweditor on hide and can't locate it's target on show
    ii) works (does not detach the tooltip)

    Tested Browser(s):
    Chrome 59

  2. #2
    Sencha User
    Join Date
    Oct 2014
    Posts
    14

    Default

    This is still happening in 6.5.1

  3. #3
    Sencha Premium User vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    811

    Default

    Came across this issuse that's been for a long time in the latest versions. I've fixed it with this override:

    Code:
    Ext.define(null, {
        override: 'Ext.grid.RowEditor',
    
    
    
    
        // ----- Fix bug: https://www.sencha.com/forum/showthread.php?354933-RowEditor-errorSummary-Tooltip-does-not-handle-show-hide-correctly
        getToolTip() {
            const tip = this.callParent();
    
    
            tip.on('show', this.fixCurrentTarget, this);
    
    
            return tip;
        },
    
    
        fixCurrentTarget(tip) {
            // currentTarget is detached in hide
            if (tip.currentTarget && tip.currentTarget.dom === null) {
                const target = this.el;
    
    
                tip.currentTarget.attach(Ext.getDom(target.el || target));
                tip.triggerElement = tip.currentTarget.dom;
            }
        },
    
    
        // ----- End of bug fix
    });
    Github https://github.com/vadimpopa
    Blogging @ : http://vadimpopa.com
    Twitter: @vadimvpopa

Similar Threads

  1. Replies: 10
    Last Post: 7 Sep 2017, 4:48 AM
  2. Replies: 3
    Last Post: 13 Dec 2011, 11:49 AM
  3. [FIXED] [4.0.0] RowEditor ignores errorSummary
    By Sbastien.Volle in forum Ext:Bugs
    Replies: 9
    Last Post: 27 Oct 2011, 1:02 PM
  4. [CLOSED] Tooltip on RowEditor does not hide when field is not valid
    By markmacumber in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 31 Aug 2009, 4:49 PM
  5. Replies: 0
    Last Post: 11 Dec 2008, 6:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •