LearnNewsExamplesServices
Frontmatter
id1318
titletree.List: smarter check if draggable & sortable are set to true
stateClosed
labels
enhancement
assigneestobiu
createdAtOct 26, 2020, 2:09 PM
updatedAtOct 26, 2020, 2:12 PM
githubUrlhttps://github.com/neomjs/neo/issues/1318
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 26, 2020, 2:12 PM

tree.List: smarter check if draggable & sortable are set to true

Closed v8.1.0 enhancement
tobiu
tobiu commented on Oct 26, 2020, 2:09 PM

Since we can dynamically both configs at any point, a ctor based check like this is not sufficient:

/**
 *
 * @param config
 */
constructor(config) {
    super(config);

    let me = this;

    if (me.draggable && me.sortable) {
        console.error('tree.List can be either draggable or sortable, not both.', me.id);
    }
}

I will move the check into afterSetDraggable() & afterSetSortable() instead.

tobiu added the enhancement label on Oct 26, 2020, 2:09 PM
tobiu assigned to @tobiu on Oct 26, 2020, 2:09 PM
tobiu referenced in commit a1db4e8 - "tree.List: smarter check if draggable & sortable are set to true #1318" on Oct 26, 2020, 2:12 PM
tobiu closed this issue on Oct 26, 2020, 2:12 PM