stable
Clone or download
Read-only
part of: story #16645 have searchable (multi) select boxes with (static binding, no dependencies) We need a selection state to ease the manipulation of list items. To do so, ListPickerItem type now reference the element inside the dropdown list and the target <option> inside the source <select> It will avoid us having to query the DOM to know which element is currently selected, and which <option> we have to select/unselect. -- no functional change expected Change-Id: Ie33d049fb5ef5e82ca3a3b2f18d906f4413c4556
Modified Files
Name | ||||
---|---|---|---|---|
M | src/scripts/list-picker/src/helpers/DropdownContentRenderer.test.ts | +16 | −3 | Go to diff View file |
M | src/scripts/list-picker/src/helpers/DropdownContentRenderer.ts | +6 | −26 | Go to diff View file |
M | src/scripts/list-picker/src/helpers/SelectionManager.test.ts | +57 | −73 | Go to diff View file |
M | src/scripts/list-picker/src/helpers/SelectionManager.ts | +67 | −50 | Go to diff View file |
M | src/scripts/list-picker/src/helpers/static-list-helper.test.ts | +45 | −3 | Go to diff View file |
M | src/scripts/list-picker/src/helpers/static-list-helper.ts | +22 | −2 | Go to diff View file |
M | src/scripts/list-picker/src/list-picker.ts | +6 | −2 | Go to diff View file |
M | src/scripts/list-picker/src/type.d.ts | +8 | −0 | Go to diff View file |