Frontmatter
| id | 1318 |
| title | tree.List: smarter check if draggable & sortable are set to true |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Oct 26, 2020, 2:09 PM |
| updatedAt | Oct 26, 2020, 2:12 PM |
| githubUrl | https://github.com/neomjs/neo/issues/1318 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Oct 26, 2020, 2:12 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.