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.

Possible to have a multiple Select message for single selection?

See original GitHub issue

Expected Behavior

If my multiple Select fields only has one option selected, I’d like the placeholder text to remain as the default.

Actual Behavior

The single option selected is now the placeholder text. 😔

Screenshot 2019-05-07 14 30 21

ideal

Maybe…

<Select
messages={{
	multiple: 'Cost',
	single: 'Cost', ***
}}
...
/>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
brantleyenglishcommented, May 16, 2019

The [X] is to remove the option from the multi-select field. That part isn’t really related to Grommet.

What will you show on the placeholder if nothing was selected? The placeholder text. Ex: “Cost”

<Select
 messages={{
	multiple: 'Cost',
	single: 'Cost'
 }}
 placeholder="Cost"
 ...
/>
0reactions
jcfilbencommented, Jan 25, 2021

As @kenjdavidson said, valueLabel can be used to get the desired behavior, but will look different than a regular input. Full example here with some styling of valueLabel. I think this issue can be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Select multiple conversations for mass action
Using multi-select by pressing COMMAND or SHIFT + clicking on the conversations you want to select, or using Select all with fewer than...
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 >
Selecting multiple messages in Messages app
Clicking the First then holding the shift before clicking the second selects all those in between for me. They include those Sent as...
Read more >
How to select items that are not next to each other
Select the first item that you want. For example, select some text. · Press and hold CTRL. · Select the next item that...
Read more >
Selecting Multiple Texts in Messages App - MacRumors Forums
You can use the usual key modifiers: cmd-click to manually select multiple messages, or select a message, and shift-click on another down below ......
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