Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: janosh/svelte-multiselect
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v11.2.3
Choose a base ref
...
head repository: janosh/svelte-multiselect
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v11.2.4
Choose a head ref
  • 4 commits
  • 30 files changed
  • 1 contributor

Commits on Sep 10, 2025

  1. Add prop fuzzy: boolean = true to MultiSelect and CmdPalette fo…

    …r fuzzy option filtering (#334)
    
    * improve type safety by extending HTMLAttributes<HTMLElement> in components where appropriate
    
    replaces untyped [key: string]: unknown ...rest props
    
    - update package.json deps
    - turn off 'svelte/no-navigation-without-resolve' rule in eslint.config.js
    
    * enhance tooltip attachment: add style and disabled args
    
    - Add support for custom styles and handling of disabled state.
    - new unit tests for tooltip
    
    * add prop fuzzy: boolean = true to MultiSelect and CmdPalette to enable fuzzy option filtering
    
    - Added fuzzy matching option to highlight_matches to highlight text the same as its filtered
    - Updated HighlightOptions type to include fuzzy property.
    - Refactored highlight_matches logic to handle both fuzzy and substring matching.
    - Improved unit tests for highlight_matches to cover various matching scenarios.
    - Updated MultiSelect and CmdPalette components to utilize fuzzy matching.
    
    * address coderabbit comments
    
    * tweaks
    
    * fix MultiSelect arrow key navigation wrap-around logic to include user message
    
    - Updated arrow key navigation to include user message when applicable
    - Adjusted active index calculation to account for user message presence
    - Improved unit tests for MultiSelect to verify navigation behavior with user messages
    
    * - fix the logic for slicing matching options to maxOptions
    
    slice(0, Math.max(0, maxOptions ?? 0) || Infinity) treats 0 as falsy and shows all options. Honor 0 explicitly
    
    -      {#each matchingOptions.slice(0, Math.max(0, maxOptions ?? 0) || Infinity) as
    +      {#each matchingOptions.slice(0, maxOptions == null ? Infinity : Math.max(0, maxOptions)) as
             option_item,
             idx
             (duplicates ? [key(option_item), idx] : key(option_item))
           }
    
    - introduce a new `selected` constant to streamline the selection state handling
    - adjust aria-selected attribute to reflect the selected state accurately
    - enhance unit tests to ensure correct behavior with various maxOptions values
    
    * make min_items = 3 prop of PrevNext
    janosh authored Sep 10, 2025
    Configuration menu
    Copy the full SHA
    e7f2d11 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2025

  1. fix broken mobile touch selection with portal enabled (#336)

    - fix MultiSelect component's click handling to improve interaction with portalled dropdowns
    - bump eslint and related dependencies in package.json to latest versions.
    - reduce too large font size for pre > code
    - rename demo page /modal -> /portal
    janosh authored Sep 20, 2025
    Configuration menu
    Copy the full SHA
    a278b5c View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2025

  1. immediately hide tooltip on scroll + icon fixes in MultiSelect + type…

    … fixes in CmdPalette and PrevNext
    
    - unit tests for tooltip to verify new scroll behavior
    - remove RadioButtons component and related tests
    janosh committed Oct 4, 2025
    Configuration menu
    Copy the full SHA
    ad02b14 View commit details
    Browse the repository at this point in the history
  2. v11.2.4

    janosh committed Oct 4, 2025
    Configuration menu
    Copy the full SHA
    9c0427b View commit details
    Browse the repository at this point in the history
Loading