mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 10:46:04 +08:00
[DE] Select form placeholder on focus
This commit is contained in:
@ -137,6 +137,9 @@ define([
|
||||
this.lockedControls.push(this.txtPlaceholder);
|
||||
this.txtPlaceholder.on('changed:after', this.onPlaceholderChanged.bind(this));
|
||||
this.txtPlaceholder.on('inputleave', function(){ me.fireEvent('editcomplete', me);});
|
||||
this.txtPlaceholder.cmpEl.on('focus', 'input.form-control', function() {
|
||||
setTimeout(function(){me.txtPlaceholder._input && me.txtPlaceholder._input.select();}, 1);
|
||||
});
|
||||
|
||||
this.textareaHelp = new Common.UI.TextareaField({
|
||||
el : $markup.findById('#form-txt-help'),
|
||||
|
||||
Reference in New Issue
Block a user