Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ntdiary committed May 23, 2023
1 parent cb65358 commit 3e9e7ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/home/report/ReportActionItemMessageEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ class ReportActionItemMessageEdit extends React.Component {
}

componentDidMount() {
// For mobile Safari, updating the selection prop on an unfocused input will cause it to automatically gain focus
// and subsequent programmatic focus shifts (e.g., modal focus trap) to show the blue frame (:focus-visible style),
// so we need to ensure that it is only updated after focus.
this.setState((prevState) => ({
selection: {
start: prevState.draft.length,
Expand Down

0 comments on commit 3e9e7ad

Please sign in to comment.