Skip to content

Commit

Permalink
fix(ActionInsertLink): Set href default to empty string instead of null
Browse files Browse the repository at this point in the history
With @nextcloud/vue 8.5.0, NcInputField requires a string or number as
`value` property.

Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Jan 24, 2024
1 parent c4fd8ae commit f0c9b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Menu/ActionInsertLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default {
],
data: () => {
return {
href: null,
href: '',
isInputMode: false,
startPath: null,
/** Open state of the actions menu */
Expand Down Expand Up @@ -170,7 +170,7 @@ export default {
const href = [...event.target.elements].filter(e => e?.type === 'text')[0].value
this.menuOpen = false
this.isInputMode = false
this.href = null
this.href = ''
return this.setLink(href, href)
}

Expand Down

0 comments on commit f0c9b9a

Please sign in to comment.