mirror of
https://github.com/zhigang1992/bootstrap-tokenfield.git
synced 2026-01-12 22:46:09 +08:00
Update input width when entering edit mode and clear mirror text when leaving edit mode
This commit is contained in:
3
js/bootstrap-tokenfield.js
vendored
3
js/bootstrap-tokenfield.js
vendored
@@ -803,6 +803,8 @@
|
||||
.select()
|
||||
.data( 'edit', true )
|
||||
.width( tokenWidth )
|
||||
|
||||
this.update();
|
||||
}
|
||||
|
||||
, unedit: function (focus) {
|
||||
@@ -810,6 +812,7 @@
|
||||
$_input.appendTo( this.$wrapper )
|
||||
|
||||
this.$input.data('edit', false)
|
||||
this.$mirror.text('')
|
||||
|
||||
this.update()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user