diff --git a/jsapp/xlform/src/mv.skipLogicHelpers.coffee b/jsapp/xlform/src/mv.skipLogicHelpers.coffee index 7a4ba46ec6..07cb29e6d1 100644 --- a/jsapp/xlform/src/mv.skipLogicHelpers.coffee +++ b/jsapp/xlform/src/mv.skipLogicHelpers.coffee @@ -389,12 +389,21 @@ module.exports = do -> @textarea.render().attach_to @$parent @button.render().attach_to @$parent @button.bind_event 'click', () => @context.use_mode_selector_helper() + @textarea.val(@criteria) + @textarea.bind_event 'keyup', () => @textarea_change_handler() + @textarea.bind_event('blur', () => + if @textarea.val() != @criteria + textarea_change_handler() + ) serialize: () -> @textarea.$el.val() || @criteria constructor: (@criteria, @builder, @view_factory, @context) -> @$parent = $('