Skip to content

Commit

Permalink
adjust editor view offset (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
yongbing-chen authored Oct 16, 2020
1 parent b92e4b3 commit 6c1ee2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/components/common/tagInput/tagInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ export class TagInput extends React.Component<ITagInputProps, ITagInputState> {
focusTag(tag: string) {
const tagItemRef = this.tagItemRefs.get(tag)?.getTagNameRef();
if (tagItemRef) {
tagItemRef.current.scrollIntoView({ behavior: "smooth" });
tagItemRef.current.scrollIntoView({ behavior: "smooth", block: "nearest" });
tagItemRef.current.classList.add("tag-item-highlight");
setTimeout(() => {
tagItemRef.current.classList.remove("tag-item-highlight");
Expand Down

0 comments on commit 6c1ee2b

Please sign in to comment.