mirror of
https://github.com/frappe/books.git
synced 2025-02-11 00:18:45 +00:00
"New Item" link item should be last
This commit is contained in:
parent
3a085b1c66
commit
6cadb5fc1f
@ -14,6 +14,12 @@ class LinkControl extends BaseControl {
|
|||||||
minChars: 0,
|
minChars: 0,
|
||||||
maxItems: 99,
|
maxItems: 99,
|
||||||
filter: () => true,
|
filter: () => true,
|
||||||
|
sort: (a, b) => {
|
||||||
|
if (a.value === '__newitem' || b.value === '__newitem') {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
return a.value > b.value;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// rebuild the list on input
|
// rebuild the list on input
|
||||||
|
Loading…
x
Reference in New Issue
Block a user