Skip to content

Commit d2a79fc

Browse files
JuniorJunior
Junior
authored and
Junior
committed
correct default paramenter cursor
1 parent 767e862 commit d2a79fc

File tree

7 files changed

+12
-8
lines changed

7 files changed

+12
-8
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ Then, follow the example to use in your browser:
4242
fixed: true,
4343
fractionDigits: 2,
4444
decimalSeparator: ',',
45-
thousandsSeparator: '.'
45+
thousandsSeparator: '.',
46+
cursor: 'move'
4647
};
4748
4849
// select the element
@@ -76,7 +77,8 @@ Or if you prefer use the methods in your events
7677
fixed: true,
7778
fractionDigits: 2,
7879
decimalSeparator: ',',
79-
thousandsSeparator: '.'
80+
thousandsSeparator: '.',
81+
cursor: 'move'
8082
};
8183
8284
input.oninput = () => {

examples/angular/src/app/app.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export class AppComponent implements AfterViewInit {
2424
fixed: true,
2525
fractionDigits: 2,
2626
decimalSeparator: ',',
27-
thousandsSeparator: '.'
27+
thousandsSeparator: '.',
28+
cursor: 'move'
2829
};
2930
// set mask on your input you can pass a querySelector or your input element and options
3031
SimpleMaskMoney.setMask('#myInput', options);

examples/javascript/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
fractionDigits: 2,
6363
decimalSeparator: ',',
6464
thousandsSeparator: '.',
65-
cursor: 'start'
65+
cursor: 'move'
6666
};
6767

6868
// set mask on your input you can pass a querySelector or your input element and options

examples/vue/src/App.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export default {
2525
fixed: true,
2626
fractionDigits: 2,
2727
decimalSeparator: ',',
28-
thousandsSeparator: '.'
28+
thousandsSeparator: '.',
29+
cursor: 'move'
2930
};
3031
// set mask on your input you can pass a querySelector or your input element and options
3132
SimpleMaskMoney.setMask('#myInput', args);

lib/simple-mask-money.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/args.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = class Args {
66
this.prefix = '';
77
this.suffix = '';
88
this.thousandsSeparator = '.';
9-
this.cursor = 'original';
9+
this.cursor = 'move';
1010

1111
this.merge(args);
1212
}

tests/args.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('Args', () => {
3434
});
3535

3636
it('cursor', () => {
37-
assert.equal(args.cursor, 'original');
37+
assert.equal(args.cursor, 'move');
3838
});
3939
});
4040

0 commit comments

Comments
 (0)