Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
Move focus to invisible element
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Aug 4, 2020
1 parent 7a90eea commit 770b6ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Change Log
## Unreleased
- Focus on an invisible element with Tab when focusing on the editor
- Since v1.6.7, the focus had unintended behaviors. This fixes the issue of v1.6.7+.

## v1.8.1
- Downgrade Electron from v9.1.2 to v5.0.13
- Electron v6 seems to have a boot issue on macOS with electron-packager.
Expand Down
2 changes: 1 addition & 1 deletion src/components/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class Editor extends React.Component {
onFocus={this.props.onFocus}
onBlur={this.props.onBlur}
/>
<div className='in_reply_to' id='0' />
<div className='in_reply_to' tabIndex='2' id='0' />
<span className={`tweet_counter ${this.props.active ? 'active' : ''} ${this.props.text.length > 140 ? 'minus' : ''}`}>
{140 - this.props.text.length}
</span>
Expand Down

0 comments on commit 770b6ec

Please sign in to comment.