Skip to content

Commit

Permalink
Update long-text cells on source update
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Dec 21, 2023
1 parent 2ea0b01 commit ae8fb15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/maps/@id/edit/components/cell/long-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ const LongTextCell = ({value, onConfirm, intent, ...props} : EditableCell2Props)

const [localValue, setLocalValue] = React.useState(value == null ? "" : value.toString());

useEffect(() => {
setLocalValue(value == null ? "" : value.toString())
}, [value])

return h(Cell, {
...props,
style: {...props.style, padding: 0},
Expand Down
1 change: 1 addition & 0 deletions src/pages/maps/@id/edit/override.sass
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.bp4-button-text
overflow: hidden
text-overflow: ellipsis
min-height: 1rem


// Need this to get the popups in front of the sidebar
Expand Down

0 comments on commit ae8fb15

Please sign in to comment.