Skip to content

Commit

Permalink
fix(date): due to an android keyboard bug the input mode is switched …
Browse files Browse the repository at this point in the history
…to decimal. (#1312)

* fix(date): due to an android keyboard bug the input mode is switched to decimal.

* chore: format files
  • Loading branch information
hirsch88 authored Jan 25, 2024
1 parent 67d6ceb commit cb98365
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/pretty-taxis-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@baloise/design-system-components': patch
---

**date**: due to an android keyboard bug the input mode is switched to decimal.
1 change: 1 addition & 0 deletions packages/components/src/utils/mask/types/mask-date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { I18n, I18nKeys } from '../../../interfaces'
export class DateMask extends AbstractMask {
public maxLength = 10
public minLength = 10
public inputMode: BalProps.BalInputInputMode = 'decimal'

private dayMask: I18n<string> = {
de: 'T',
Expand Down
2 changes: 1 addition & 1 deletion packages/components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"types": ["vitest/globals"],
},
"include": ["src"],
"exclude": ["dist", "components", "loader", "www", "scripts", "node_modules", "generated"]
"exclude": ["dist", "components", "loader", "www", "scripts", "node_modules", "generated"],
}

0 comments on commit cb98365

Please sign in to comment.