Skip to content

Commit

Permalink
Merge pull request #3770 from nextcloud/fix/noid/link-picker-focus-issue
Browse files Browse the repository at this point in the history
Fix focus becoming impossible to get after escape pressed in the link picker modal
  • Loading branch information
julien-nc authored Feb 8, 2023
2 parents d81cd1c + c4ffc12 commit f5b48ad
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions js/editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/editor.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/highlight/diff-js-js.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/highlight/diff-js-js.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions js/text-editors.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-editors.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-files.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-files.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-public.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-text.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-text.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-viewer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-viewer.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/Menu/ActionInsertLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export default {
this.$editor.chain().unsetLink().focus().run()
},
linkPicker() {
getLinkWithPicker()
getLinkWithPicker(null, true)
.then(link => {
this.$editor
.chain()
Expand Down
2 changes: 1 addition & 1 deletion src/components/Suggestion/LinkPicker/suggestions.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { searchProvider, getLinkWithPicker } from '@nextcloud/vue-richtext'
export default () => createSuggestions({
listComponent: LinkPickerList,
command: ({ editor, range, props }) => {
getLinkWithPicker(props.providerId)
getLinkWithPicker(props.providerId, true)
.then(link => {
editor
.chain()
Expand Down

0 comments on commit f5b48ad

Please sign in to comment.