Skip to content

Commit

Permalink
clue highlight fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rjkat committed Jul 28, 2024
1 parent c3c40d7 commit 0898597
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1566,6 +1566,10 @@ export default Vue.extend({
}
}
this.markCount = nmark;
this.forceUpdateUI();
},
forceUpdateUI() {
// TODO: actually manage cell contents/highlight state properly
this.$forceUpdate();
this.$refs.grid.$forceUpdate();
},
Expand Down Expand Up @@ -1729,7 +1733,7 @@ export default Vue.extend({
this.lastSelected[msg.solverid] = undefined;
this.crossword.clues[msg.clueid].clearHighlight(msg.solverid);
}
this.$forceUpdate();
this.forceUpdateUI();
},
toggleSyncSelection(solver) {
if (solver.solverid == this.solverid) {
Expand Down Expand Up @@ -1787,6 +1791,7 @@ export default Vue.extend({
this.crossword.clues[msg.clueid].showCorrect = false;
this.crossword.clues[msg.clueid].cells[msg.offset].contents = msg.value;
this.crossword.clues[msg.clueid].cells[msg.offset].special = msg.special;
this.forceUpdateUI();
},
sendUpdate(event) {
if (this.$options.socket) {
Expand Down

0 comments on commit 0898597

Please sign in to comment.