Repository URL to install this package:
|
Version:
2.1.16 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const exotic_1 = require("exotic");
class SearchValidationStrategy extends react_1.default.Component {
constructor() {
super(...arguments);
this.onSubmit = args => {
const {
onSubmit
} = this.props;
if (exotic_1.isFunction(onSubmit)) {
onSubmit(args);
}
};
this.onBlur = args => {
const {
onBlur
} = this.props;
if (exotic_1.isFunction(onBlur)) {
onBlur(args);
}
};
this.onFocus = args => {
const {
onFocus
} = this.props;
if (exotic_1.isFunction(onFocus)) {
onFocus(args);
}
};
this.onChange = args => {
const {
onChange
} = this.props;
if (exotic_1.isFunction(onChange)) {
onChange(args);
}
};
}
}
exports.SearchValidationStrategy = SearchValidationStrategy;