Skip to content

Commit ef4c072

Browse files
fn-faisalfaisal154mtrezza
authored
fix: date cell value not selected on double clicks (#1730)
* 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 <[email protected]> Co-authored-by: Manuel <[email protected]>
1 parent 53abdb3 commit ef4c072

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Add CI check to add changelog entry (Manuel Trezza) [#1764](https://github.com/parse-community/parse-dashboard/pull/1764)
99
- Add Parse Issue Bot (Manuel Trezza) [#1766](https://github.com/parse-community/parse-dashboard/pull/1766)
1010
- Refactor: uniform issue templates across repos (Manuel Trezza) [#1767](https://github.com/parse-community/parse-dashboard/pull/1767)
11+
- fix: date cell value not selected on double clicks (fn-faisal) [#1730](https://github.com/parse-community/parse-dashboard/pull/1730)
1112

1213
## Fixes
1314

src/components/DateTimeEditor/DateTimeEditor.react.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,15 @@ export default class DateTimeEditor extends React.Component {
9898
</div>
9999
);
100100
}
101-
101+
102102
return (
103103
<div ref='editor' style={{ width: this.props.width }} className={styles.editor}>
104104
<input
105+
autoFocus
105106
type='text'
106107
ref='input'
107108
value={this.state.text}
109+
onFocus={e => e.target.select()}
108110
onClick={this.toggle.bind(this)}
109111
onChange={this.inputDate.bind(this)}
110112
onBlur={this.commitDate.bind(this)} />

0 commit comments

Comments
 (0)