Skip to content

Commit

Permalink
Issue 526 - Copy/paste does not work in certain situations (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Andre-Rivet committed Apr 14, 2020
1 parent aceddf3 commit edbffb8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/dash-table/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Fixed
- [#722](https://github.com/plotly/dash-table/pull/722) Fix a bug where row height is misaligned when using fixed_columns and/or fixed_rows
- [#728](https://github.com/plotly/dash-table/pull/728) Fix copy/paste on readonly cells

## [4.6.2] - 2020-04-01
### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default class CellLabel extends PureComponent<IProps> {
const el = this.refs.el as HTMLDivElement;

if (applyFocus && el && document.activeElement !== el) {
window.getSelection()?.selectAllChildren(el);
el.focus();
}
}
Expand Down
12 changes: 7 additions & 5 deletions packages/dash-table/src/dash-table/components/Table/Table.less
Original file line number Diff line number Diff line change
Expand Up @@ -396,20 +396,22 @@
.dash-cell-value {
height: 100%;
width: 100%;
}

input.dash-cell-value {
position: absolute;
left: 0;
top: 0;
&.unfocused::selection {
background-color: transparent;
}

&.unfocused {
caret-color: transparent;
}
}

input.dash-cell-value {
position: absolute;
left: 0;
top: 0;
}

.cell-value-shadow {
margin: auto 0;
opacity: 0;
Expand Down

0 comments on commit edbffb8

Please sign in to comment.