Needs work
Project:
Drupal core
Version:
main
Component:
javascript
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2023 at 10:17 UTC
Updated:
9 Jul 2024 at 10:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
casey commentedSomething like this would work.
To lock a row, it should not have a draggable class and its weight should be disabled. Also, this patch only works for (not select) inputs as weight.
Comment #3
gauravvvv commentedFixed ccf issue, attached interdiff for same
Comment #6
joachim commentedConverted this to an MR with the patches so far committed.
I can see a corner case which this does not handle yet: suppose two locked items have the *same* weight.
It should not be possible to drag an item in between these two items, because there is no way to set a weight to go in between them.