nextcloud-libraries / nextcloud-libraries/nextcloud-vue

NcActions open toggle flickers if devtools are opened

Open
#3,963 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. to triage bug
Dominant language
Vue
Stars
246
Forks
99
Avg merge
1d 20h
Merged PRs (30d)
103

Description

Devtools opened Closed
Peek 08-04-2023 09-27 Peek 08-04-2023 09-28

Not sure this is really an issue, but am I the only one? 😅

Reproducible code
<template>
	<div>
		<button @click="open=open===1?2:1">Toggle</button>
		<NcActions :force-menu="true" :open="open===1">
			<NcActionButton @click="actionDelete">
				<template #icon>
					<Delete :size="20" />
				</template>
				Delete
			</NcActionButton>
		</NcActions>
		<NcActions :force-menu="true" :open="open===2">
			<NcActionButton @click="actionDelete">
				<template #icon>
					<Delete :size="20" />
				</template>
				Delete
			</NcActionButton>
		</NcActions>
	</div>
</template>
<script>
import Delete from 'vue-material-design-icons/Delete'

export default {
	components: {
		Delete,
	},
	data() {
	  return {open:0}
	  },
	methods: {
		actionDelete() {
			alert('Delete')
		},
	},
}
</script>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the NcActions component and reproduce the two-toggle Vue example from the issue with browser devtools opened and closed. Trace why the open state flickers, then verify that switching between the two NcActions instances leaves only the selected menu open without visual flicker in either devtools state.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.