Skip to content

Commit

Permalink
kind of fix focusOrder on tabbing from empty option
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
  • Loading branch information
Chartman123 committed Nov 8, 2023
1 parent c29194a commit eb7e954
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Questions/QuestionDropdown.vue
Expand Up @@ -162,7 +162,7 @@ export default {
// When leaving edit mode, filter and delete empty options
const options = this.options.filter(option => {
if (!option.text) {
this.deleteOptionFromDatabase(option)
this.deleteOption(option.id)
return false
}
return true
Expand Down
2 changes: 1 addition & 1 deletion src/components/Questions/QuestionMultiple.vue
Expand Up @@ -256,7 +256,7 @@ export default {
// When leaving edit mode, filter and delete empty options
const options = this.options.filter(option => {
if (!option.text) {
this.deleteOptionFromDatabase(option)
this.deleteOption(option.id)
return false
}
return true
Expand Down

0 comments on commit eb7e954

Please sign in to comment.