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.

allowClear does not show cross to delete entry

See original GitHub issue

Hi there! I’ve used the newest version 1.2.0 and it does not look like the example.

 <ng-select  [allowClear]="true"
                    [items]="control.data"
                    [placeholder]="control.default"
                    (selected)="control.selected($event)">
    </ng-select>

unbenannt

I am missing the cross to delete the selected entry, And the triangle to open list is not placed at end of input box as seen in demo.

unbenannt

I’ve also tried adding your ng2-select.css from demo page, but without any success.

How can I fix this?

Regards Carsten

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
carstenschaefercommented, Jan 31, 2017

yeah, I’ve seen this. but it works on demo page!

1reaction
rejayi-experioncommented, Aug 3, 2017

Rather than ng2-select.css Write the below CSS in you _custom.css

.glyphicon-remove {
    position: relative  !important;
}
.glyphicon-remove:before {
    content: "\f00d"  !important;
    font-family: FontAwesome  !important;
    font-style: normal !important;
    font-weight: normal !important;
    text-decoration: inherit !important;
    color: #000 !important;
    font-size: 15px !important;
    padding-right: 0.5em !important;
    position: absolute !important;
    top: 0px !important;
    left: -5px !important;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

select2 allowClear not enabled when options set dynamically
@CBroe, I'm aware of that. I didn't create that fiddle and neglected to add a placeholder when I added allowClear option. I am...
Read more >
Can the "clear" button on a record picker input be removed?
I'm using a sn-record-picker on a service portal widget. When an option is selected and the box is filled an 'x' is added...
Read more >
selectOnClose with allowClear not working - Is this a bug?
Is there a workaround? Clicking the x button should just remove the selection without opening the dropdown again, i believe.
Read more >
ReactJS UI Ant Design Input Component - GeeksforGeeks
allowClear : It is used to remove input content with a clear icon if ... showCount: It is used to indicate whether show...
Read more >
X-editable :: In-place editing with Twitter Bootstrap, jQuery UI ...
Element on page will not be updated and editable form will display error message. Default request method is POST, you can change it...
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