Merge pull request #1003 from piemonkey/main

Auto-select document name on edit if it's still the default
This commit is contained in:
David Benque 2023-04-25 11:45:00 +01:00 committed by GitHub
commit b09ccefe6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -764,6 +764,10 @@ MessengerUI, Messages, Pages) {
$input.val(inputVal);
$input.show();
$input.focus();
if (inputVal === $input.attr('placeholder')) {
// Placeholder is the default name, select text to make editing easier
$input.select();
}
$pencilIcon.hide();
$saveIcon.show();
};