Approved
Last Updated: 31 May 2019 12:35 by Paul
Paul
Created on: 31 May 2019 12:35
Category: Spreadsheet
Type: Bug Report
0
Destroying & removing Spreadsheet doesn't remove all DOM elements added on initialization

Bug report

When destroying a SpreadSheet and removing its corresponding DOM element, there are some DOM nodes added on SpreadSheet's initialization which are not removed after the execution of .destroy() and .remove().

Reproduction of the problem

  1. Open this Dojo and run it.
  2. Open browser's console and see the output in it. The initial number of the children nodes in the body is 2 and the children nodes after adding and removing a SpreadSheet are 5.
    Nodes_count
  3. Right-click the blank page in right and inspect it. Navigate to the body in the iframe and see the additional nodes in it
    Nodes_count_body

Current behavior

Not all DOM elements added on SpreadSheet initialization are being removed when destroying it and removing its corresponding DOM element.

Expected/desired behavior

After destroying a SpreadSheet and removing its corresponding DOM element, no DOM nodes added on component's initialization should be presented in the DOM tree.

Environment

  • Kendo UI version: 2019.2.514
  • jQuery version: x.y
  • Browser: [all]
0 comments