stuff
This commit is contained in:
parent
b12911077c
commit
b3cfe31f28
|
@ -6064,8 +6064,7 @@ var BDFDB = {
|
||||||
NativeSubComponents.Switch = BDFDB.ModuleUtils.findByName("Switch");
|
NativeSubComponents.Switch = BDFDB.ModuleUtils.findByName("Switch");
|
||||||
NativeSubComponents.TabBar = BDFDB.ModuleUtils.findByName("TabBar");
|
NativeSubComponents.TabBar = BDFDB.ModuleUtils.findByName("TabBar");
|
||||||
NativeSubComponents.Table = BDFDB.ModuleUtils.findByName("Table");
|
NativeSubComponents.Table = BDFDB.ModuleUtils.findByName("Table");
|
||||||
NativeSubComponents.TextArea = BDFDB.ModuleUtils.findByName("TextAreaAutosize");
|
NativeSubComponents.TextArea = BDFDB.ModuleUtils.findByName("TextArea");
|
||||||
NativeSubComponents.TextAreaAutosize = BDFDB.ModuleUtils.findByName("TextAreaAutosize");
|
|
||||||
NativeSubComponents.TextInput = BDFDB.ModuleUtils.findByName("TextInput");
|
NativeSubComponents.TextInput = BDFDB.ModuleUtils.findByName("TextInput");
|
||||||
NativeSubComponents.TooltipContainer = BDFDB.ModuleUtils.findByName("Tooltip");
|
NativeSubComponents.TooltipContainer = BDFDB.ModuleUtils.findByName("Tooltip");
|
||||||
|
|
||||||
|
@ -7028,39 +7027,23 @@ var BDFDB = {
|
||||||
} : LibraryComponents.Table;
|
} : LibraryComponents.Table;
|
||||||
|
|
||||||
LibraryComponents.TextArea = reactInitialized ? class BDFDB_TextArea extends LibraryModules.React.Component {
|
LibraryComponents.TextArea = reactInitialized ? class BDFDB_TextArea extends LibraryModules.React.Component {
|
||||||
handleKeyDown(e) {
|
|
||||||
if (typeof this.props.onKeyDown == "function") this.props.onKeyDown(e, this);
|
|
||||||
}
|
|
||||||
handleChange(e) {
|
handleChange(e) {
|
||||||
this.props.value = e;
|
this.props.value = e;
|
||||||
BDFDB.ReactUtils.forceUpdate(this);
|
BDFDB.ReactUtils.forceUpdate(this);
|
||||||
if (typeof this.props.onChange == "function") this.props.onChange(e, this);
|
if (typeof this.props.onChange == "function") this.props.onChange(e, this);
|
||||||
}
|
}
|
||||||
handleInput(e) {
|
|
||||||
if (typeof this.props.onInput == "function") this.props.onInput(e, this);
|
|
||||||
}
|
|
||||||
handleBlur(e) {
|
handleBlur(e) {
|
||||||
if (typeof this.props.onBlur == "function") this.props.onBlur(e, this);
|
if (typeof this.props.onBlur == "function") this.props.onBlur(e, this);
|
||||||
}
|
}
|
||||||
handleFocus(e) {
|
handleFocus(e) {
|
||||||
if (typeof this.props.onFocus == "function") this.props.onFocus(e, this);
|
if (typeof this.props.onFocus == "function") this.props.onFocus(e, this);
|
||||||
}
|
}
|
||||||
handleMouseEnter(e) {
|
|
||||||
if (typeof this.props.onMouseEnter == "function") this.props.onMouseEnter(e, this);
|
|
||||||
}
|
|
||||||
handleMouseLeave(e) {
|
|
||||||
if (typeof this.props.onMouseLeave == "function") this.props.onMouseLeave(e, this);
|
|
||||||
}
|
|
||||||
render() {
|
render() {
|
||||||
return BDFDB.ReactUtils.createElement(this.props.autosize ? NativeSubComponents.TextAreaAutosize : NativeSubComponents.TextArea, BDFDB.ObjectUtils.exclude(Object.assign({}, this.props, {
|
return BDFDB.ReactUtils.createElement(NativeSubComponents.TextArea, Object.assign({}, this.props, {
|
||||||
onKeyDown: this.handleKeyDown.bind(this),
|
|
||||||
onChange: this.handleChange.bind(this),
|
onChange: this.handleChange.bind(this),
|
||||||
onInput: this.handleInput.bind(this),
|
|
||||||
onBlur: this.handleBlur.bind(this),
|
onBlur: this.handleBlur.bind(this),
|
||||||
onFocus: this.handleFocus.bind(this),
|
onFocus: this.handleFocus.bind(this)
|
||||||
onMouseEnter: this.handleMouseEnter.bind(this),
|
}));
|
||||||
onMouseLeave: this.handleMouseLeave.bind(this)
|
|
||||||
}), "autosize"));
|
|
||||||
}
|
}
|
||||||
} : LibraryComponents.TextArea;
|
} : LibraryComponents.TextArea;
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue