Skip to content

Commit

Permalink
Colorname input: unset inherited props
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Feb 10, 2024
1 parent e0c630a commit f0ef763
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions panel/src/components/Forms/Input/ColornameInput.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<k-string-input
v-bind="$props"
:spellcheck="false"
autocomplete="off"
class="k-colorname-input"
type="text"
@blur.native="onBlur"
Expand All @@ -17,28 +19,28 @@ import StringInput, { props as StringInputProps } from "./StringInput.vue";
export const props = {
mixins: [StringInputProps],
props: {
// unset props
autocomplete: null,
font: null,
maxlength: null,
minlength: null,
pattern: null,
spellcheck: null,
/**
* Add the alpha value to the color name
*/
alpha: {
type: Boolean,
default: true
},
autocomplete: {
default: "off",
type: String
},
/**
* @values "hex", "rgb", "hsl"
*/
format: {
type: String,
default: "hex",
validator: (format) => ["hex", "rgb", "hsl"].includes(format)
},
spellcheck: {
default: false,
type: Boolean
}
}
};
Expand Down

0 comments on commit f0ef763

Please sign in to comment.