From 478d14dbaac66f23b762d288dca9b734e62881ca Mon Sep 17 00:00:00 2001 From: Xon <635541+Xon@users.noreply.github.com> Date: Sat, 7 Feb 2026 15:10:58 +0800 Subject: [PATCH] Fix typos in README.md examples --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f949a54a..7065497f 100644 --- a/README.md +++ b/README.md @@ -169,7 +169,7 @@ import "choices.js/public/assets/styles/choices.css"; resetScrollPosition: true, shouldSort: true, shouldSortItems: false, - sorter: () => {...}, + sorter: (a, b) => sortByAlpha, shadowRoot: null, placeholder: true, placeholderValue: null, @@ -609,7 +609,7 @@ const example = new Choices(element, { sorter: function(a, b) { return b.label.length - a.label.length; }, -}; +}); ``` ### placeholder @@ -774,7 +774,7 @@ Return type must be safe to insert into HTML (ie use the 1st argument which is s ```js const example = new Choices(element, { valueComparer: (a, b) => value.trim() === b.trim(), -}; +}); ``` ### labelId