Skip to content

fix(rich-multi-select): forward maxOptions setting to tom-select - #23

Merged
zmarquez merged 1 commit into
mainfrom
feat/rich-multi-select-max-options
Aug 7, 2026
Merged

zmarquez merged 1 commit into
mainfrom
feat/rich-multi-select-max-options

Conversation

@zmarquez

@zmarquez zmarquez commented Aug 7, 2026

Copy link
Copy Markdown
Member

Summary

  • RichMultiSelect (#buildConfig()) no reenviaba settings.maxOptions a la configuración de tom-select, por lo que siempre caía en el default de tom-select (maxOptions: 50).
  • Cuando un consumidor cargaba un catálogo grande de opciones localmente (sin remoteUrl), las búsquedas con más de 50 coincidencias se truncaban silenciosamente, perdiendo resultados válidos sin ningún indicador visual.
  • Se reenvía settings.maxOptions igual que ya se hace con sortField, permitiendo a los consumidores subir o desactivar el límite vía data-settings.

Closes #22

Test plan

  • TDD: test que falla sin el fix (usa maxOptions de data-settings) y test de comportamiento por defecto (no define maxOptions cuando no se configura)
  • Suite completa: 600 tests pasan
  • npm run lint sin errores
  • npm run build compila correctamente
  • README.md actualizado con la nueva opción maxOptions
  • example/index.html + example/js/main.js actualizados con demo comparando comportamiento con/sin maxOptions

🤖 Generated with Claude Code

Search results were silently truncated at Tom Select's default of 50
options when consumers loaded large local catalogs (no remoteUrl).
Forward settings.maxOptions from data-settings the same way sortField
already is, so consumers can raise or disable the limit.

Closes #22
@zmarquez
zmarquez merged commit d7c85f2 into main Aug 7, 2026
1 check passed
@zmarquez
zmarquez deleted the feat/rich-multi-select-max-options branch August 7, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RichMultiSelect: los resultados de búsqueda se cortan a 50 opciones (maxOptions no configurable)

1 participant