Skip to content

Commit

Permalink
recalc fields when widget moved via keyboard
Browse files Browse the repository at this point in the history
- closes #217
  • Loading branch information
foxriver76 committed Nov 29, 2023
1 parent a8560f0 commit ce801bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ E.g., if it was used in a menu and the menu is red, the circle would be red.
## Changelog
### **WORK IN PROGRESS**
* (foxriver76) fixed reactivity in custom components
* (foxriver76) fields are now updated when moved via keyboard

### 2.9.1 (2023-11-28)
* (foxriver76) recalculate fields after moving widgets
Expand Down
1 change: 1 addition & 0 deletions src/src/Vis/visView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,7 @@ class VisView extends React.Component {
this.moveTimer = setTimeout(() => {
this.moveTimer = null;
this.showRulers(true);
store.dispatch(recalculateFields(true));

this.props.selectedWidgets.forEach(wid => {
if (this.widgetsRefs[wid]?.onMove) {
Expand Down

0 comments on commit ce801bf

Please sign in to comment.