Skip to content

Commit

Permalink
Arreglo el input de number
Browse files Browse the repository at this point in the history
  • Loading branch information
emilioplatzer committed Nov 21, 2017
1 parent bcb1e3e commit eeed56d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/typed-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ TypedControls.adaptElement = function adaptElement(domElement, typerOrTypeInfo){
domElement.controledType = typer;
var bestControl=BestControls.div;
if(domElement.tagName=='INPUT' && domElement.type=='number'){
bestControl=BestControls.number;
//bestControl=BestControls.number;
}
if(typedControlsOptionGroup){
var inputTypeRadio=[];
Expand Down Expand Up @@ -723,6 +723,9 @@ TypedControls.adaptElement = function adaptElement(domElement, typerOrTypeInfo){
return this[this.dataAttr]===''?null:this[this.dataAttr];
};
domElement.setPlainValue = function setPlainValue(plainValue){
if(this.tagName=='INPUT' && this.type=='number'){
// alert('aca')
}
this[this.dataAttr] = plainValue;
};
domElement.setValidatedTypedValue = function setValidatedTypedValue(typedValue){
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "typed-controls",
"description": "typed controls, widgets and others",
"version": "0.7.19",
"version": "0.7.20",
"author": "Codenautas <codenautas@googlegroups.com>",
"license": "MIT",
"repository": "codenautas/typed-controls",
Expand Down

0 comments on commit eeed56d

Please sign in to comment.