Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions static/usage/v7/input/mask/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@ import angular_example_component_ts from './angular/example_component_ts.md';
'index.ts': javascript_index_ts,
},
dependencies: {
'@maskito/core': '^0.16.0',
'@maskito/core': '^1.0.0',
},
},
react: {
files: {
'src/main.tsx': react_main_tsx,
},
dependencies: {
'@maskito/react': '^0.16.0',
'@maskito/core': '^0.16.0',
'@maskito/react': '^1.0.0',
'@maskito/core': '^1.0.0',
},
},
vue: {
files: {
'src/components/Example.vue': vue_example_vue,
},
dependencies: {
'@maskito/vue': '^0.16.0',
'@maskito/core': '^0.16.0',
'@maskito/vue': '^1.0.0',
'@maskito/core': '^1.0.0',
},
},
angular: {
Expand All @@ -48,8 +48,8 @@ import angular_example_component_ts from './angular/example_component_ts.md';
'src/app/example.component.ts': angular_example_component_ts,
},
dependencies: {
'@maskito/angular': '^0.16.0',
'@maskito/core': '^0.16.0',
'@maskito/angular': '^1.0.0',
'@maskito/core': '^1.0.0',
},
},
}}
Expand Down
6 changes: 4 additions & 2 deletions static/usage/v7/input/mask/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ function Example() {
<IonInput
ref={async (cardRef) => {
if (cardRef) {
cardMask(await cardRef.getInputElement());
const input = await cardRef.getInputElement();
cardMask(input);
}
}}
label="Card number"
Expand All @@ -41,7 +42,8 @@ function Example() {
<IonInput
ref={async (phoneInput) => {
if (phoneInput) {
phoneMask(await phoneInput.getInputElement());
const input = await phoneInput.getInputElement();
phoneMask(input);
}
}}
label="US phone number"
Expand Down