Skip to content

Commit 07ae403

Browse files
author
Edward Xiao
committed
no message
1 parent a6ec88b commit 07ae403

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lib/components/Select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ var isValidateValue = function isValidateValue(value) {
115115
if (!String.prototype.startsWith) {
116116
String.prototype.startsWith = function (searchString, position) {
117117
position = position || 0;
118-
return undefined.indexOf(searchString, position) === position;
118+
return this.indexOf(searchString, position) === position;
119119
};
120120
}
121121

lib/react-inputs-validation.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-inputs-validation.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-inputs-validation.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/Inputs/Select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const isValidateValue = value => {
3737
};
3838

3939
if (!String.prototype.startsWith) {
40-
String.prototype.startsWith = (searchString, position) => {
40+
String.prototype.startsWith = function(searchString, position) {
4141
position = position || 0;
4242
return this.indexOf(searchString, position) === position;
4343
};

0 commit comments

Comments
 (0)