We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c0156cd + 9138143 commit 3264533Copy full SHA for 3264533
src/components/NcTextField/NcTextField.vue
@@ -127,7 +127,8 @@ export default {
127
@input="handleInput">
128
<!-- Default slot for the leading icon -->
129
<slot />
130
- <template slot="trailing-button-icon">
+ <!-- Trailing icon slot, except for search type input as the browser already adds a trailing close icon -->
131
+ <template v-if="type !== 'search'" slot="trailing-button-icon">
132
<Close v-if="trailingButtonIcon === 'close'" :size="20" />
133
<ArrowRight v-else-if="trailingButtonIcon === 'arrowRight'" :size="20" />
134
</template>
@@ -174,6 +175,7 @@ export default {
174
175
'email',
176
'tel',
177
'url',
178
+ 'search',
179
].includes(value),
180
},
181
0 commit comments