Choices icon indicating copy to clipboard operation
Choices copied to clipboard

Hide the placehoder from the dropdown choices list

Open HectorLS opened this issue 6 years ago • 2 comments

"choices.js": "^7.0.0"

Hello!

Case scenario:

Common behaviour where the placeholder is not able to be selected from the dropdown list:

  • placeholder should only be visible on page load
  • after user select something else, it won't be able to select the placeholder back again

Base on the rule that placeholder value is an empty string -> placeholder value = ''

Is there any feature about this ? like placeholderSelectable: true/false or some idea to achieve this easily 🤔 ?

Thanks in advance

HectorLS avatar Mar 26 '20 13:03 HectorLS

I'm also dealing with this issue, does anyone have a solution or a workaround?

ksouthworth avatar Dec 01 '21 04:12 ksouthworth

I have found the following simple CSS workaround

.choices__list--dropdown .choices__placeholder {
  display: none;
}

veacks avatar Jan 26 '23 10:01 veacks