@dataloop-ai/components 0.19.144 → 0.19.145

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.19.144",
3
+ "version": "0.19.145",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -1105,7 +1105,7 @@ export default defineComponent({
1105
1105
  methods: {
1106
1106
  onKeydown(e: KeyboardEvent) {
1107
1107
  if (e.key !== 'Backspace') {
1108
- if (!/^[\d.]$/.test(e.key)) {
1108
+ if (this.type === 'number' && !/^[\d.]$/.test(e.key)) {
1109
1109
  e.preventDefault()
1110
1110
  return
1111
1111
  }