Skip to content

Commit

Permalink
fix: date cell value not selected on double clicks (#1730)
Browse files Browse the repository at this point in the history
* removed old logic

* date time fix

* Changelog.MD update

Added improvement to change-log

* fix changelog entry

* Update CHANGELOG.md

Co-authored-by: Faisal Nadeem <mfaisalnadeem@hotmail.com>
Co-authored-by: Manuel <5673677+mtrezza@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 31, 2021
1 parent 53abdb3 commit ef4c072
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Add CI check to add changelog entry (Manuel Trezza) [#1764](https://github.com/parse-community/parse-dashboard/pull/1764)
- Add Parse Issue Bot (Manuel Trezza) [#1766](https://github.com/parse-community/parse-dashboard/pull/1766)
- Refactor: uniform issue templates across repos (Manuel Trezza) [#1767](https://github.com/parse-community/parse-dashboard/pull/1767)
- fix: date cell value not selected on double clicks (fn-faisal) [#1730](https://github.com/parse-community/parse-dashboard/pull/1730)

## Fixes

Expand Down
4 changes: 3 additions & 1 deletion src/components/DateTimeEditor/DateTimeEditor.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ export default class DateTimeEditor extends React.Component {
</div>
);
}

return (
<div ref='editor' style={{ width: this.props.width }} className={styles.editor}>
<input
autoFocus
type='text'
ref='input'
value={this.state.text}
onFocus={e => e.target.select()}
onClick={this.toggle.bind(this)}
onChange={this.inputDate.bind(this)}
onBlur={this.commitDate.bind(this)} />
Expand Down

0 comments on commit ef4c072

Please sign in to comment.