- Fix javascript paginated filtering for XF2.3 support
- Used in (paid) Threadmarks Pro add-on and (free) Who Replied add-on
- Fix XF2.3.5 compatibility
- Actually update choices.js to v11.0.3
- Update choices.js to v11.0.3
- Fix accessibility around tab/shift//esc key handling
- Fix "No choices to choose from" was displayed when it shouldn't be
- Fix max item notice handling would stop displaying when it shouldn't
- Fix HTML comments could be displayed as part of a item's text label when they shouldn't be.
- Update choices.js
- Adjust font-size css to be more inline with standard XF
- Fix select did not reset correct after a form submit.
- Noticeable with Threadmarks Pro add-on on replying to a thread
- Fix "no choices to choose from"/"no results found" notice did not reliably trigger
- Fix options loader would unexpectedly clear options. This impacts the move thread function.
- Update count down timer to only show seconds in the last 2 minutes by default, this avoid excessive page-reflows
- Noticeable with notice time replacables add-on
- Update
choices.jsintegration
- Cleanup font-size handling (on average slightly larger, but works on more styles)
- Convert CSS (generated from SCSS) into LESS
- Fix adding classes to
choices.jsviadata-class-*attributes did not work as expected- Fix a number of performance issues with very large number of options (ie hundreds to thousands), not fully resolved but better.
- Fix "Class XFES\Listener not found" from some of my add-on installers
- Update
choices.js (v11.0.0-rc8)
- Maintenance of
choices.jsis now done by Xon- When filtering/searching, show all search result hits instead of just the top 4.
- Support all text/number configuration options as data-* attributes
- Fix bad reference to
useNativeTimeInputsinREADME.md- Update choices.js (v11.0.0-rc7)
- Smaller bundle size
- Improve aria attribute handling (aka accessability)
- Many bugfixes around keyboard handling & displaying notices
- Fix ajax pagination & ajax filtered pagination code did not dynamically loading css/js
- Update
choices.js
- Various performance fixes when used with large number of options (ie hundreds of prefixes when using Multi-Prefix)
- Fix filtering/search could return unstable search results
- Fix possible empty
aria-labelgeneration on remove item button- Fix enter could cause accidental form submit instead of open/closing the choices list in all cases
- XF2.3 support
- Various .js files should work with XF2.1/XF2.2/XF2.3
- Fix
hasDesiredAddOnVersioncould error if the target addon was in a processing state- Fix
Standard Lib: Log parse_less_func debug infooption not working- Backport
<xf:macro name="template::macrosyntax to to XF2.1- Update parse_less_color to not return CSS variables where possible
- Bundle
choices.jsas a near drop-in replacement forselect2
- Enrich a select box with choices.js.
HTML:<xf:macro template="svStandardLib_macros" name="choices_setup" /> <xf:selectrow label="Select row example" name="select_row_example" multiple="multiple" data-xf-init="sv-choices" data-placeholder="{{ phrase('example')|for_attr }}" data-max-item-count="2"> <xf:option value="1">Option 1</xf:option> <xf:option value="2" selected="true">Option 2</xf:option> <xf:option value="3">Option 3</xf:option> </xf:selectrow>
- The initial structure is pre-rendered to reduce/prevent page jank.
- To opt-out add the
skip-rendering="true"attribute to the<xf:select>or<xf:selectrow>element- This will be used by a number of my add-ons and other 3rd party addons.
We use essential cookies to make this site work, and optional cookies to enhance your experience.