Comments (4)
Would using the index
property of <SwipeableViews />
works?
from react-swipeable-views.
Unfortunately that doesnt solve the issue.
from react-swipeable-views.
Is this really a bug? Seems like this is a state management issue. Each item in the list needs to be given a unique identifier and the state/index of each swipeable should be associated with that identifier. Then when an item is deleted from the list the state is not tied to its position in the list. If you want to reset the index of all slides after an event like pressing of a delete button then that should be done from the list controller.
from react-swipeable-views.
The problem is that item3 that now is item2 after I deleted one item have its slideIndex set to the same as the item that was deleted from the list.
@funkyeah Oh, you are right, I have overlooked this sentence. That's proving that it's working fine.
Thanks đ .
from react-swipeable-views.
Related Issues (20)
- Virtualize: `onSwitching` called with wrong index
- checkIndexBounds off by 1 validation
- Ignored attempt to cancel a touchmove event with cancelable=false
- Media options (download and picture and picture mode) not showing up from video controls (kebab menu) inside react swipeable views
- unpin @babel/runtime HOT 1
- Virtualized SwipeableViews: Redundant transition when reaching the overscan limit while swiping with arrow keys
- Peer dependency for React 16 HOT 1
- Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code HOT 9
- Update to be used along with react 18 HOT 28
- Can the container fit the width of the slideshow?
- add arrow in the slide
- SwipeableViews rerender too much
- Swiper virtualize slideRenderer animation is not normal
- New configurator required in react HOT 1
- Will not install with react 18.2.0 HOT 4
- ĺą çść˛Ąćć é轎ćĺč˝ďź HOT 3
- Deprecate package, do not use HOT 7
- 'SwipeableViews' cannot be used as a JSX component. HOT 1
- Feature request: ARIA attributes on individual slides
- Endless loading images when swiping
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 react-swipeable-views.