Skip to content

Commit

Permalink
input: Support possibility to set autocomplete="on" on touch level
Browse files Browse the repository at this point in the history
  • Loading branch information
gela committed Aug 12, 2014
1 parent 66874ab commit c937c95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions touch.blocks/input/__control/input__control.bemhtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ block('input').elem('control')(
var baseAttrs = applyNext({ 'ctx._input__controlAttrs' : true }),
attrs = this.ctx.attrs || {};

attrs.autocomplete = attrs.autocomplete || 'off';
attrs.autocorrect = attrs.autocorrect || 'off';
attrs.autocapitalize = attrs.autocapitalize || 'off';
attrs.spellcheck = attrs.spellcheck || 'false';
attrs.autocomplete = 'off';
attrs.autocorrect = 'off';
attrs.autocapitalize = 'off';
attrs.spellcheck = 'false';

return this.extend(baseAttrs, attrs);
})
Expand Down

0 comments on commit c937c95

Please sign in to comment.