input: fix horizontal mode when focused

This commit is contained in:
jean-emmanuel 2017-12-21 12:57:01 +01:00
parent 0be383c79d
commit c24fba0d07
2 changed files with 9 additions and 2 deletions

View file

@ -55,6 +55,10 @@ module.exports = class Input extends _canvas_base {
this.value = ''
this.stringValue = ''
if (this.getProp('horizontal')) {
this.widget.addClass('horizontal')
}
if (this.getProp('editable')) {
this.canvas.attr('tabindex', 0)
this.canvas.on('focus', this.focus.bind(this))