mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-30 14:00:07 +02:00
Auto-focus on card title only if its empty
This commit is contained in:
parent
0d2311fdc5
commit
2b186e2362
@ -44,7 +44,9 @@ class CardDetail extends React.Component<Props, State> {
|
||||
}
|
||||
|
||||
componentDidMount(): void {
|
||||
this.titleRef.current?.focus()
|
||||
if (!this.state.title) {
|
||||
this.titleRef.current?.focus()
|
||||
}
|
||||
}
|
||||
|
||||
constructor(props: Props) {
|
||||
|
Loading…
Reference in New Issue
Block a user