input: fix horizontal mode when focused
This commit is contained in:
parent
0be383c79d
commit
c24fba0d07
2 changed files with 9 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue