Skip to content

Commit

Permalink
fix(kselect): filter input [khcp-9483] (#1784)
Browse files Browse the repository at this point in the history
* fix(kselect): filter input

* fix(kselect): icon click
  • Loading branch information
aanchalm01 authored Oct 23, 2023
1 parent 7f15e7e commit 64ec450
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/KSelect/KSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
:color="`var(--grey-500, ${KUI_COLOR_TEXT_NEUTRAL})`"
icon="chevronDown"
:size="KUI_ICON_SIZE_30"
@click.prevent="onInputFocus"
/>
<KInput
:id="selectTextId"
Expand All @@ -148,6 +149,7 @@
:class="{
'no-filter': !filterIsEnabled,
'input-placeholder-dark has-chevron': appearance === 'select',
'no-typing': appearance === 'select' && !autosuggest,
'input-placeholder-transparent': hasCustomSelectedItem && (!filterIsEnabled || !isToggled.value),
'has-clear': isClearVisible,
'is-readonly': ($attrs.readonly !== undefined && String($attrs.readonly) !== 'false'),
Expand Down Expand Up @@ -859,6 +861,13 @@ $iconSize: var(--kui-icon-size-30, $kui-icon-size-30);
position: relative;
width: 100%;
&.has-chevron.no-typing {
.k-input {
caret-color: transparent;
cursor: pointer;
}
}
&.is-readonly {
@include input-readonly;
box-shadow: none !important;
Expand Down

0 comments on commit 64ec450

Please sign in to comment.