Skip to content

Commit

Permalink
feat: removed clear icon 'x' from number input field and it's associa…
Browse files Browse the repository at this point in the history
…ted clear functionality
  • Loading branch information
Amirah Chamble authored and Amirah Chamble committed Dec 11, 2018
1 parent 02ad18b commit f7405f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/FishTankTextInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
 {{ textAreaModel }}
</p>
<span
v-if="showRightIcon"
v-if="showRightIcon && !numberType"
class="ft-input-text__right-icon"
>
<slot name="rightIcon">
Expand Down Expand Up @@ -194,6 +194,12 @@ export default Vue.extend({
showRightIcon(): boolean {
return !!this.$slots.rightIcon || ((this as any).value && (this as any).value.length > 0)
},
numberType(){
if(this.$props.type === "number"){
return true
}
}
,
errorMessage(): string | undefined {
if (!(this as any).error) {
return undefined
Expand Down

0 comments on commit f7405f8

Please sign in to comment.