playbook_ui 14.9.0.pre.alpha.PBNTR775formmatingmaskdefaultvalue5120 → 14.9.0.pre.alpha.PBNTR775formmatingmaskdefaultvalue5121

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da8a7920b5da846030bda1d8bcb3c18037bf19595c200269f9db7dd51764c766
4
- data.tar.gz: 8a07e7da151e04fc89634772bd5ec1cd1ef27a8aef0b69858df3063485701a6f
3
+ metadata.gz: cfe5e243fdd166f4333142e96b09c56088e5b1d265266ffa87e103a41fc8eaef
4
+ data.tar.gz: 58a5bea3b1b81cc0fb06731f30aef7c5c02fbc2d7bfddc7175046d913355f325
5
5
  SHA512:
6
- metadata.gz: 39185b19e732294072ed4b0f2b331d12a6f897f8803b46651af31b95589087da685e8a2f72f1d5ae93b80159176d406d154fb35751fab93fc5fe3a96ca51cf07
7
- data.tar.gz: bfd1b02747edb49bfafe7601fd23bc6e38c898439f7e85b363920a46344468a06da31bd776f4a51c5670e393c28523d65d636fb089ded77314b84c55b65f4c4a
6
+ metadata.gz: fb44317a418ce0d5042d883f6c7a5d1789cef28e04fa3819021e8ec853f8dc5db8dbf09b2fe925188356586e4a9707a6497e0102afaedec2f4c466d4603fad8a
7
+ data.tar.gz: aada7d4698d5b7dfc3ba3528f295ba980eca79b85ed5d018e332e4ec473b0b021863c412fd2f49b6b9d0e02a4a527bdbe1ffa0160e62f9f2b2b25ccaaee982b1
@@ -123,9 +123,11 @@ const TextInput = (props: TextInputProps, ref: React.LegacyRef<HTMLInputElement>
123
123
 
124
124
  const childInput = children ? children.type === "input" : undefined
125
125
 
126
- let formattedValue = value.toString()
126
+ let formattedValue;
127
127
  if (isMaskedInput) {
128
- formattedValue = INPUTMASKS[mask].format(formattedValue)
128
+ formattedValue = INPUTMASKS[mask].format(value.toString())
129
+ } else {
130
+ formattedValue = value
129
131
  }
130
132
 
131
133
  const textInput = (