quasar icon indicating copy to clipboard operation
quasar copied to clipboard

[Request] QSelect - clearable prop

Open Mohanrau opened this issue 9 years ago • 4 comments

Software version

Quasar: 0.14.5 OS: windows 10 Node: NPM: Browsers: iOS: Android: Any other software related to your bug:

What did you get as the error?

What were you expecting?

Add Clearable single q-select Ref - http://element.eleme.io/#/en-US/component/select#clearable-single-select

What steps did you take, to get the error?

Mohanrau avatar Oct 19 '17 09:10 Mohanrau

It's easy to create your own component that extends QSelect with prop clearable and adds the existing property after with somethig like

[{
  icon: 'cancel',
  content: true,
  handler: () => { this.$emit('input', this.multiple ? [] : '') }
}]

But I agree, this feature must be in the base component.

igorgo avatar Oct 19 '17 18:10 igorgo

Agreed. Will get into v0.14.7

rstoenescu avatar Oct 19 '17 18:10 rstoenescu

@igorgo thank you for the quickfix @rstoenescu good to hear that thanks man

Mohanrau avatar Oct 20 '17 00:10 Mohanrau

Available in edge and future v0.14.7. QSelect (& QDialogSelect) now supports "clearable" Boolean prop.

rstoenescu avatar Oct 20 '17 16:10 rstoenescu