Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
# Conflicts:
#	package-lock.json
  • Loading branch information
emilioplatzer committed Dec 7, 2017
2 parents fbc9731 + 7518916 commit 4cec22a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6,119 deletions.
12 changes: 8 additions & 4 deletions lib/typed-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,10 +610,14 @@ TypedControls.adaptElement = function adaptElement(domElement, typerOrTypeInfo){
domElement.shadowControl = inputElement;
inputElement.addEventListener('change',function(){
var value = inputElement.value;
domElement.optionControl[value].checked = true;
var event = new Event('change');
var elem = domElement.optionControl[value];
elem.dispatchEvent(event);
if(value && domElement.optionControl[value]){
domElement.optionControl[value].checked = true;
var event = new Event('change');
var elem = domElement.optionControl[value];
elem.dispatchEvent(event);
}else{
//TO-DO
}
});
}
typer.typeInfo.options.forEach(function(option){
Expand Down

0 comments on commit 4cec22a

Please sign in to comment.