Use timeout on tag box cursor calculation

This commit is contained in:
BrokenEagle
2017-10-19 09:12:08 -07:00
parent ff42b7b4a2
commit 7805404b47

View File

@@ -261,8 +261,8 @@
Danbooru.RelatedTag.process_artist(Danbooru.RelatedTag.recent_artist); Danbooru.RelatedTag.process_artist(Danbooru.RelatedTag.recent_artist);
} }
$field.focus(); //The timeout is needed on Chrome since it will clobber the field attribute otherwise
$field.prop('selectionStart', $field.val().length); setTimeout(function () { $field.prop('selectionStart', $field.val().length);}, 100);
e.preventDefault(); e.preventDefault();
} }