oruga icon indicating copy to clipboard operation
oruga copied to clipboard

o-tab-item content hidden on page load

Open gmcinalli opened this issue 1 year ago • 7 comments

Overview of the problem

Oruga version: 0.6.0 Nuxt version: 3.5.1 OS/Browser: macOS 13.3.1 (a) / Google Chrome 113.0.5672.126

Description

The content of o-tab-item is hidden on page load if the tab is programmatically selected via v-model on o-tabs.

I noticed that this problem doesn't occur if the pre-selected tab is the first available one.

The problem starts to appear from Oruga version 0.5.0.

Steps to reproduce

Full reproduction: https://stackblitz.com/edit/nuxt-starter-gqrjtc?file=app.vue

Expected behavior

The content of the selected tab should be displayed on page load as it was with the pre-0.5.0 versions.

Actual behavior

The content of the selected tab is hidden on page load until you select another tab and return to the desired one.

gmcinalli avatar May 24 '23 13:05 gmcinalli

The problem occurs also if the pre-selected tab is the first available one.
See my reproduction here: https://stackblitz.com/edit/github-zcrtvq-w7tjtp

Oruga version: [email protected] (latest) Vuejs version: [email protected] Nuxtjs version: [email protected] (latest) OS/Browser: Chromium Version 116.0.5845.179 (Official Build) snap (64-bit) on Ubuntu 22.04.3 LTS Brave [Version 1.57.53 Chromium: 116.0.5845.114 (Official Build) (64-bit)] on Ubuntu 22.04.3 LTS Firefox 117.0 (64-bit) on Ubuntu 22.04.3 LTS Brave 1.56 on IOS 16.6.1 Chrome 116.0.5845.172 on Android 8.0.0

learntheropes avatar Sep 10 '23 16:09 learntheropes

A dirty workaround while this get fixed: https://stackblitz.com/edit/github-zcrtvq-fie9nh

learntheropes avatar Sep 10 '23 17:09 learntheropes

when will this bug get fixed?

zhaolinlau avatar Sep 23 '23 14:09 zhaolinlau

@zhaolinlau I will look at it when I have some time.

mlmoravek avatar Nov 09 '23 10:11 mlmoravek

@gmcinalli Could you check again with version 0.8.x?

mlmoravek avatar Dec 10 '23 20:12 mlmoravek

Hi @mlmoravek, unfortunately I'm on Vue 2, so the last version that I can try is 0.7.0.

gmcinalli avatar Jan 04 '24 14:01 gmcinalli

@zhaolinlau @learntheropes any news?

jtommy avatar Jan 07 '24 17:01 jtommy

Hello,

I updated the reproduction with the latest version of Nuxt and Oruga and it's fixed.

  "devDependencies": {
    "@types/node": "^18",
    "nuxt": "^3.11.1"
  },
  "dependencies": {
    "@oruga-ui/oruga-next": "^0.8.6",
    "@oruga-ui/theme-oruga": "^0.2.2"
  }
  • https://stackblitz.com/edit/nuxt-starter-gpnmyh?file=app.vue

When I load the page the second tab is visible.

Regards

Mathieu

messenjer avatar Mar 29 '24 10:03 messenjer

@messenjer Thanks for checking this.

If anyone has any further problems with this, please let me know or reopen this issue again :)

mlmoravek avatar Mar 29 '24 10:03 mlmoravek