fluent-svelte-extra 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -53,6 +53,7 @@ export function setItems(argItems) {
|
|
|
53
53
|
/** Pushes the specified item to the matches array */
|
|
54
54
|
export function addMatch(match) {
|
|
55
55
|
matches.push(match);
|
|
56
|
+
matches.length > maxSuggestions ? matches.length = maxSuggestions : null;
|
|
56
57
|
}
|
|
57
58
|
/** Removes the specified item from the matches array */
|
|
58
59
|
export function removeMatch(match) {
|
|
@@ -65,6 +66,7 @@ export function removeAllMatches() {
|
|
|
65
66
|
/* Sets the matches array to the specified array */
|
|
66
67
|
export function setMatches(argMatches) {
|
|
67
68
|
matches = argMatches;
|
|
69
|
+
matches.length > maxSuggestions ? matches.length = maxSuggestions : null;
|
|
68
70
|
}
|
|
69
71
|
$: {
|
|
70
72
|
if (autoSuggest) {
|
package/package.json
CHANGED