From 91c7334a14b4bd865c580801d0fe89820e263473 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 1 Feb 2017 21:11:51 +0300 Subject: [PATCH] looking for a bug in .makeEditable(..) Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-widgets.js | 8 ++++++++ ui (gen4)/lib/widget/browse.js | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index b669d4a1..64e3388d 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -1635,6 +1635,14 @@ var WidgetTestActions = actions.Actions({ make.EditableList(['x', 'y', 'z']) + make.Separator() + // BUG: this does not respond well to clicks... + make.Editable('action + clear', { + //start_on: 'select', + clear_on_edit: true, + }) + + // NOTE: the dialog's .parent is not yet set at this point... diff --git a/ui (gen4)/lib/widget/browse.js b/ui (gen4)/lib/widget/browse.js index 7c2cb063..ebacf85e 100755 --- a/ui (gen4)/lib/widget/browse.js +++ b/ui (gen4)/lib/widget/browse.js @@ -754,7 +754,7 @@ function(list, options){ && res.on('open', function(){ options.itemopen(dialog.selected) }) res = res.toArray() - + // new button... if(options.new_item !== false){ var new_item = options.new_item || true