jspreadsheet / jspreadsheet/ce

Dropdown editor does not respect delimiter option

Open
#1,792 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7.2k
Forks
890
PR merge metrics
No merged PRs in 30d

Description

Hi 👋

TL;DR; demo

It looks like the dropdown editor in Jspreadsheet CE does not support or properly handle the delimiter option.

When using a dropdown column with multiple selection enabled, changing the delimiter parameter does not affect the resulting cell value. The value is still joined using the default delimiter instead of the one provided in the configuration.

Expected behavior:

When setting a custom delimiter in the column configuration, the selected values should be joined using that delimiter.

Actual behavior:

The delimiter option has no effect. The resulting value always uses the default delimiter.

Example configuration:

{
    type: 'dropdown',
    multiple: true,
    delimiter: '|',
    source: ['A', 'B', 'C']
}

Selecting A and B still results in:

A,B

Instead of:

A|B

Jspreadsheet CE version: 5.0.4
Is this expected behavior, or is it a bug?

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked StackBlitz demo and reproduce the issue using a dropdown column with multiple selection and delimiter '|'. Trace the dropdown editor's value-joining behavior for the provided configuration. Done means selecting A and B produces A|B rather than A,B.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.