Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy-paste of date data does not work #1729 #1730

Merged
merged 8 commits into from
Aug 31, 2021
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
- Improved copy paste functionality for date values. [#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