Comments (7)
That's right, it is just default behavior.
from nova-tab.
@shabbirbharmal -- Yes, but it should be disabled. Why did you close this?
https://vuejs.org/v2/guide/events.html
event.stopPropagation()
from nova-tab.
Because that is the default behavior of tab component I am using and I didn't see any option to change it or make it configurable. Let me know if you think we are not on the same page with the issue you are facing.
from nova-tab.
It doesn't need to be a configurable option. The page simply shouldn't move at all when you change tabs. Just like most other websites. A good example is github right here when you add a reply, there is a "Write" and "Preview" tab on the editor. The page doesn't scroll.
If the page moves when users are clicking a tab, it's very disorienting and the first thing they will do is scroll back up. I'm not familiar enough with Vue or Nova to get this installed. Bust in native javascript or any other library it's usually a one liner added to the click event to disable the browsers default behavior.
from nova-tab.
Is this what you're using?
https://github.com/spatie/vue-tabs-component
It doesn't happen in the demo on that website.
Can you confirm it's happening in your Laravel Nova installation, too?
Demo: http://vue-tabs-component.spatie.be/
- Make your window smaller to confirm no scrolling happens.
from nova-tab.
I see what is happening here. URL fragment is conflicting with Nova's Vue router. Will have to disable URL fragment to fix this
from nova-tab.
Awesome, hopefully it's not to difficult.
from nova-tab.
Related Issues (20)
- Panel inside a nova tab? HOT 4
- Tab ID attribute shouldn't have a space in it
- Testing HOT 1
- Add title to ressource edit HOT 2
- Tab only in detail HOT 1
- Relationships Outside of Tab? HOT 2
- Validation error highlight collision with OwenMelbz\RadioField\RadioButton ? HOT 1
- Full width and height tabs HOT 1
- Please, update the documentation in https://novapackages.com/packages/arsenaltech/nova-tab HOT 1
- Class 'Arsenaltech\NovaTab\Resource' not found HOT 2
- Invalid handler for event "actionExecuted" HOT 1
- Tabs not working on edit mode HOT 1
- Tabs not working with Nova 2.0.9 HOT 4
- TypeError: Cannot read property 'fields' of undefined - after Composer Update HOT 6
- nova-tabs breaks HasMany HOT 1
- Discussion translatey(2px) HOT 5
- [Feature] Allow to add icon to tabs HOT 1
- Problem with HasMany HOT 2
- Right now, only show one field for tab... HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nova-tab.