From 81398b68e06258f62a269df36097874cf10ba296 Mon Sep 17 00:00:00 2001 From: Ankit Singla Date: Sat, 6 Oct 2018 12:17:44 +0530 Subject: [PATCH] enables Save button for an action if any of its input fields gain focus --- examples/lib/defaultHtmlStepUi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/lib/defaultHtmlStepUi.js b/examples/lib/defaultHtmlStepUi.js index 6d1d930ef4..746b4ab267 100644 --- a/examples/lib/defaultHtmlStepUi.js +++ b/examples/lib/defaultHtmlStepUi.js @@ -100,7 +100,7 @@ function DefaultHtmlStepUi(_sequencer, options) { $(step.ui.querySelector("div.details .btn-save")).prop("disabled",false); } - $(step.ui.querySelector(".target")).change(toggleSaveButton); + $(step.ui.querySelectorAll(".target")).focus(toggleSaveButton); $(step.ui.querySelector("div.details")).append( "

Press save to see changes

"