some more tweaks
This commit is contained in:
parent
d000b85429
commit
fb4d28b265
3 changed files with 11 additions and 3 deletions
|
@ -240,6 +240,7 @@ export const selectable = (element: HTMLElement, options: Accessor<{ value: obje
|
|||
const mode = (() => {
|
||||
if (append) return SelectionMode.Append;
|
||||
if (!withRange && isSelected()) return SelectionMode.Toggle;
|
||||
if (withRange) return SelectionMode.Replace;
|
||||
return SelectionMode.Normal;
|
||||
})();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue