I was surprised when the change event wasn't fired on the target (and countryName) inputs. My solution is a bit of a hack (it allows for one spurious call to click from updateTarget) in that it only guards against redundant triggers, but I wanted a minimally invasive change. This was important for my integration with an AngularJS project.
I was surprised when the change event wasn't fired on the
target
(andcountryName
) inputs. My solution is a bit of a hack (it allows for one spurious call toclick
fromupdateTarget
) in that it only guards against redundant triggers, but I wanted a minimally invasive change. This was important for my integration with an AngularJS project.