fix bug: upper limit does not work

Description of the problem: 
for:  
    [input type = "text" data-max = "2" data-min = "- 2"]

can not be set any number between [0; 2]