Skip to content

Commit fdb55a9

Browse files
committed
renamed unmaskedValue property to unmasked
1 parent e0dfbf2 commit fdb55a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/component.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default defineComponent({
9090
const input = (event: Event) => {
9191
const { target } = event as CustomInputEvent
9292
maskedValue.value = target.value
93-
unmaskedValue.value = target.unmaskedValue
93+
unmaskedValue.value = target.unmasked
9494
emit('input:model-value', emittedValue.value)
9595
}
9696

src/core.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface Config {
2323
options: Options
2424
oldValue: Input
2525
masked: Input
26-
unmaskedValue: Input
26+
unmasked: Input
2727
}
2828

2929
export class CustomInputEvent<T = any> extends CustomEvent<T> {
@@ -32,7 +32,7 @@ export class CustomInputEvent<T = any> extends CustomEvent<T> {
3232
export interface CustomInputElement extends HTMLInputElement {
3333
options: Options
3434
masked?: Input
35-
unmaskedValue?: Input
35+
unmasked?: Input
3636
oldValue?: Input
3737
cleanup: () => void
3838
}
@@ -114,7 +114,7 @@ export function updateValue(el: CustomInputElement, vnode: VNode | null, { emit
114114

115115
el.oldValue = masked
116116
el.masked = masked
117-
el.unmaskedValue = unmasked
117+
el.unmasked = unmasked
118118

119119
// safari makes the cursor jump to the end if el.value gets assign even if to the same value
120120
if (el.value !== masked) {

0 commit comments

Comments
 (0)