Results 1 to 2 of 2

Thread: DragZone duplicates DOM ids which leads to error if one Ext.get()s duplicated element

    You found a bug! We've classified it as EXTJS-24550 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member MaximGB's Avatar
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    542

    Default DragZone duplicates DOM ids which leads to error if one Ext.get()s duplicated element

    Ext version tested:

    • Ext 6.2.1 rev 167



    Browser versions tested against:

    All browsers affected


    DOCTYPE tested against:

    • <!DOCTYPE html>



    Description:

    Default implementation of Ext.dd.DragZone() uses this.dragData.ddel.cloneNode(true) to fill in the drag status proxy, this leads to the case when DOM might have elements with the same ids (if element to be dragged has id attribute defined). If source element has been cached in Ext.cache via accessing it with Ext.get() call and later one tries to access cloned proxy contents via Ext.fly(this.getProxy().getGhost()).first(), then duplicate ids error from Ext.get() will be raised.

    The Ext.dd.DragSource::onInitDrag() method actually solves the issue by changing cloned node id, but it's overridden by Ext.dd.DragZone::onInitDrag() which introduce the error.


    Steps to reproduce the problem:




    The result that was expected:

    No error risen


    The result that occurs instead:

    Error risen
    Use the force - read the source.

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. Replies: 1
    Last Post: 21 Jul 2012, 5:33 PM
  2. Scoped CSS leads to CSS margin error
    By nothing in forum Ext: Q&A
    Replies: 2
    Last Post: 20 Jun 2012, 3:26 AM
  3. localstorage duplicates in browser's inspect element
    By riyaad in forum Sencha Touch 2.x: Q&A
    Replies: 7
    Last Post: 16 Mar 2012, 6:21 AM
  4. [CLOSED] Ext 4.1 Beta 2 Ext.dd.DragZone Ext.Element.fly is undefined
    By campersau1 in forum Ext:Bugs
    Replies: 2
    Last Post: 2 Feb 2012, 9:36 AM
  5. Error when trying to add only duplicates records to grid
    By MischaKroon in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 13 Jun 2010, 11:20 PM

Tags for this Thread

Posting Permissions

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