Default XenForo 2 Icon

XF2 Addons Standard Library by Xon 1.22.6
A number of helper utilities designed to ease add-on development

  • When using "AJAX pagination with filter bar" (js/sv/lib/xf/filter.js), fix invalid javascript error message when filtering by a value without pagination wrapper
    • Noticeable on the "logo selection" page of the Selectable logo (paid) add-on
  • Improve compatibility when using EarlyJoinFinderTrait and SqlJoinTrait together
    • Avoid possible expensive table expression queries being computed multiple times
  • Workaround unexpected behavior in \XF::eek:ptions() and strongly typed property hints (generated by XF CLI command xf-dev:generate-options-stub) which may cause bugs in some add-ons
  • Update choices.js v11.1.0
    • Remove role="textbox" from search input, per a11y practices
    • Add choices.search-kmp.js build, more advanced than a simple prefix match but less complex than using FUSE for search
    • Support <option label="..." /> HTML (not generated by XF natively)
  • Update to choices.js v11.0.6
    • Fix regression where clicking the item would close & then re-open the dropdown instead of expected behavior
    • Fix regression in setChoices API call (interaction with selected items, does not affect bundled select.js library)
  • Fix javascript paginated filtering for XF2.2 support
  • 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.js integration
    • 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.js via data-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
  • 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-label generation on remove item button
    • Fix enter could cause accidental form submit instead of open/closing the choices list in all cases
  • Like
Reactions: LiaNdrY
Top Bottom