From 9a3d0e11b58224ca2d80673289d1a690c9009eec Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 16 Apr 2020 01:47:34 +0200 Subject: [PATCH] Fix TableRow model component. Closes #2697 --- src/dom_components/model/ComponentTableRow.js | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/dom_components/model/ComponentTableRow.js b/src/dom_components/model/ComponentTableRow.js index 1e90eae21a..d0f25beaad 100644 --- a/src/dom_components/model/ComponentTableRow.js +++ b/src/dom_components/model/ComponentTableRow.js @@ -4,31 +4,12 @@ export default Component.extend( { defaults: { ...Component.prototype.defaults, - type: 'row', tagName: 'tr', draggable: ['thead', 'tbody', 'tfoot'], droppable: ['th', 'td'] - }, - - initialize(o, opt) { - Component.prototype.initialize.apply(this, arguments); - - // Clean the row from non cell components - const cells = []; - const components = this.get('components'); - components.each(model => model.is('cell') && cells.push(model)); - components.reset(cells); } }, { - isComponent(el) { - let result = ''; - - if (el.tagName == 'TR') { - result = { type: 'row' }; - } - - return result; - } + isComponent: el => el.tagName == 'TR' && true } );