aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/MainOverlayTextBox.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-08-31 00:13:33 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-08-31 00:13:33 -0400
commitea25f19b08fba66b1ec281afdadf719ae6a6ed54 (patch)
tree09122ee57c0001eb1e36486f882b4d6f663aa511 /src/client/views/MainOverlayTextBox.tsx
parent6aee8e71c50f363ec8c7eb2a2fc5b136295319d2 (diff)
fixed some hacks so that undo/redo works for ordered lists
Diffstat (limited to 'src/client/views/MainOverlayTextBox.tsx')
-rw-r--r--src/client/views/MainOverlayTextBox.tsx5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/client/views/MainOverlayTextBox.tsx b/src/client/views/MainOverlayTextBox.tsx
index 755e5de14..27e0d181f 100644
--- a/src/client/views/MainOverlayTextBox.tsx
+++ b/src/client/views/MainOverlayTextBox.tsx
@@ -48,11 +48,6 @@ export class MainOverlayTextBox extends React.Component<MainOverlayTextBoxProps>
MainOverlayTextBox.Instance = this;
reaction(() => FormattedTextBox.InputBoxOverlay,
(box?: FormattedTextBox) => {
- const tb = this._textBox;
- const container = tb && tb.props.ContainingCollectionView;
- if (tb && container) {
- tb.rebuildEditor();// this forces the edited text box to completely recreate itself to avoid get out of sync -- e.g., bullet labels are only computed when the dom elements are created
- }
this._textBox = box;
if (box) {
this.ChromeHeight = box.props.ChromeHeight;