question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Help wanted] Multiple select field with predefined options problem

See original GitHub issue

Hello,

I have a page on which I can have a non fixed number of multiselect element. Basically, the “create” version of the page, to create an entry, works flawlessly. But, the “edit” version is causing me some trouble: I assign the value found in the database on the ready() method of the page’s component (in which the multiselects are).

You can see in the image below what happens:

screen shot 2016-07-26 at 08 48 46

The last one always works: it’s set, and I can select new values. But for all the ones before the value are set, but they are stuck with a loading icon and I can’t do anything with them. Trying to search for a new value seems to work (if I console.log the search results, they show), but they won’t appear in the multiselect search box.

I can recall something like this in the doc, or in issues (was it even myself? hehe), that could help, but I can’t seem to be able to find it, so… Any help welcome ! 😃 🎱

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
shentaocommented, Jul 27, 2016
created () {
    if (!this.selected) {
      this.$set('value', this.multiple ? [] : null)
    } else {
      this.value = deepClone(this.selected)
    }

This is from multiselect’s code and might cause the issue. I will try to provide a hotfix for it soon.

0reactions
shentaocommented, Aug 8, 2016

Really glad to hear that!

Let me know if there are any other issues with the new release.

Cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Field Type - Select multiple values - ServiceNow Community
Solved: When someone is filling in a Catalog Item I want them to have the ability to select multiple options, however the current...
Read more >
How to select options in Multiple select list with jQuery?
When a user selects a value from the first one I want in the second (which has the multiple select option), with jQuery,...
Read more >
How to Make Multiple Selection in Drop-down Lists in Google ...
The main purpose of drop-down lists in Google Sheets is to offer options that a user can choose from. It gives users a...
Read more >
Select Multiple Items from a Drop Down List in Excel
In this tutorial, learn how to select multiple items from a drop down list in Excel. This can be achieved by using a...
Read more >
"Other" option for "multiple select" field - Airtable Community
Solved: When using a form, I want to offer specific choices for students to choose from, but I also want to offer them...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found