Skip to content

Conversation

@PVince81
Copy link
Member

Since a recent change to NcActions it's not possible to add a "ref" attribute on a NcAction* component.

As a workaround, a ref was added on the NcActions parent component instead.

Fixes #34281

Since a recent change to NcActions it's not possible to add a "ref"
attribute on a NcAction* component.

As a workaround, a ref was added on the NcActions parent component
instead.

Signed-off-by: Vincent Petry <[email protected]>
@PVince81
Copy link
Member Author

/backport to stable25

@blizzz blizzz mentioned this pull request Sep 27, 2022
@skjnldsv
Copy link
Member

Since a recent change to NcActions it's not possible to add a "ref" attribute on a NcAction* component.

That's a regression. This is one of the basic feature of Vue. It means we are doing something wrong 😕

@raimund-schluessler
Copy link
Member

Since a recent change to NcActions it's not possible to add a "ref" attribute on a NcAction* component.

That's a regression. This is one of the basic feature of Vue. It means we are doing something wrong 😕

It's a regression of nextcloud-libraries/nextcloud-vue#2911. I created a ticket with the explanation in nextcloud-libraries/nextcloud-vue#3298.

@PVince81
Copy link
Member Author

/compile amend /

Co-authored-by: Joas Schilling <[email protected]>
Signed-off-by: Vincent Petry <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
Copy link
Member

@raimund-schluessler raimund-schluessler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, I didn't test it, though.

@raimund-schluessler
Copy link
Member

I created nextcloud-libraries/nextcloud-vue#3299 which helps to address this problem.

However, even with a fix of nextcloud/vue, server would still need adjustments, since we use a render function now, which means the ref copyButton would not be available in the context of the SharingEntryInternal component anymore, but only in the context of the NcActions component.

@blizzz blizzz modified the milestones: Nextcloud 25, Nextcloud 26 Sep 27, 2022
@blizzz
Copy link
Member

blizzz commented Sep 27, 2022

master is 26, please trigger backport if necessary

@PVince81 PVince81 merged commit 5c8cab6 into master Sep 27, 2022
@PVince81 PVince81 deleted the bugfix/34281/fix-copy-internal-link-focus branch September 27, 2022 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: copying internal links does not work (error: "cannot copy, please copy the link manually")

7 participants