Repository URL to install this package:
|
Version:
0.9.6 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const exotic_1 = require("exotic");
const deps_1 = require("../deps");
/**
* @extends TextBoxComponent @bound
*/
function handleChange(event, props, state) {
const { isChecked, value } = deps_1.fromChangeEventToValues(event);
const { onValueChange } = props;
console.debug('[input] TextBox.change');
console.info('{value, isChecked}: ', value, isChecked);
state.setValue(value);
if (exotic_1.isFunction(onValueChange)) {
onValueChange(value, event);
}
// extending
if (exotic_1.isFunction(this.onValueChange)) {
this.onValueChange(value, event);
}
}
exports.handleChange = handleChange;
//# sourceMappingURL=handleChange.js.map