Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Names of newly selected items aren't shown when using select_many #214

Open
JamieEdge opened this issue Mar 5, 2020 · 0 comments
Open

Comments

@JamieEdge
Copy link

When using a select_many field, existing items are shown correctly, however when selecting new items, they appear with no names when inserted into the form.

This behaviour is shown in the below screenshot. The item 'Existing Item' was already selected and hence rendered by the server, however the newly selected entry has no name shown.

Example

I traced the issue to the below frontend code, which sets displayName to an empty string. Is this intentional?

data = {
primaryKey: primaryKey,
displayName: ''
};
$option = $(Mustache.render(QorSelectMany.SELECT_MANY_OPTION_TEMPLATE, data));
$selector.append($option);

The items appear as expected within the bottom sheet itself. The issue only occurs when items are added to the form.

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

No branches or pull requests

1 participant