Fix form and textarea bug
This commit is contained in:
@@ -69,7 +69,7 @@ class WSF_TEXTAREA_CONTROL extends WSF_CONTROL
|
||||
update: (state) ->
|
||||
if state.text?
|
||||
window.states[@control_name]['text'] = state.text
|
||||
$el.val(state.text)
|
||||
@$el.val(state.text)
|
||||
|
||||
#map class name to effective class
|
||||
typemap =
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
WSF_TEXTAREA_CONTROL.prototype.update = function(state) {
|
||||
if (state.text != null) {
|
||||
window.states[this.control_name]['text'] = state.text;
|
||||
return $el.val(state.text);
|
||||
return this.$el.val(state.text);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user