Skip to content

Commit

Permalink
fixed Input pattern bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Morgan committed Jul 10, 2015
1 parent dc43bc7 commit 8cbbf98
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/platypus.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* PlatypusUI v0.5.0 (https://platypi.io)
* PlatypusUI v0.5.1 (https://platypi.io)
* Copyright 2015 Platypi, LLC. All rights reserved.
*
* PlatypusUI is licensed under the MIT license found at
Expand Down
2 changes: 1 addition & 1 deletion dist/platypus.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* PlatypusUI v0.5.0 (https://platypi.io)
* PlatypusUI v0.5.1 (https://platypi.io)
* Copyright 2015 Platypi, LLC. All rights reserved.
*
* PlatypusUI is licensed under the MIT license found at
Expand Down
2 changes: 1 addition & 1 deletion dist/platypusui.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* PlatypusUI v0.5.0 (https://platypi.io)
* PlatypusUI v0.5.1 (https://platypi.io)
* Copyright 2015 Platypi, LLC. All rights reserved.
*
* PlatypusUI is licensed under the MIT license found at
Expand Down
8 changes: 5 additions & 3 deletions dist/platypusui.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var __extends = this.__extends || function (d, b) {
};
/* tslint:disable */
/**
* PlatypusUI v0.5.0 (https://platypi.io)
* PlatypusUI v0.5.1 (https://platypi.io)
* Copyright 2015 Platypi, LLC. All rights reserved.
*
* PlatypusUI is licensed under the MIT license found at
Expand Down Expand Up @@ -3727,8 +3727,10 @@ var platui;
* The event handler upon user text input.
*/
Input.prototype._onInput = function () {
var inputElement = this._inputElement, value = this._stripInput(inputElement.value);
inputElement.value = value;
var inputElement = this._inputElement, value = inputElement.value, strippedValue = this._stripInput(inputElement.value);
if (value !== strippedValue) {
value = inputElement.value = strippedValue;
}
if (value === this.value) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/platypusui.min.js

Large diffs are not rendered by default.

0 comments on commit 8cbbf98

Please # to comment.