Skip to content

Commit 8cca5e5

Browse files
author
Zach Shepherd
committed
Mask: fix bug in raw-value-retrieval logic
1 parent dab7f29 commit 8cca5e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.mask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ $.widget( "ui.mask", {
125125
for ( bufferPosition = 0; bufferPosition < bufferLength; bufferPosition += bufferObject.length ) {
126126
bufferObject = this.buffer[ bufferPosition ];
127127
if ( bufferObject.literal ) {
128-
if ( !raw && bufferPosition < this.optionalPosition || this.isValid ) {
128+
if ( !raw && ( bufferPosition < this.optionalPosition || this.isValid ) ) {
129129
value += bufferObject.literal;
130130
}
131131
} else if ( bufferObject.value ) {

0 commit comments

Comments
 (0)