metafizzy / metafizzy/flickity

createMethods not working in v3.0.0

Open
#1,262 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7.6k
Forks
593
PR merge metrics
No merged PRs in 30d

Description

Currently, using V3 and applying some older techniques to Flickity results in some console errors.
I am using the equal cells size height hack which is a "extra" on this page: https://flickity.metafizzy.co/extras.html.

The console error comes from this line:
```
Flickity.createMethods.push('_createResizeClass');
```

Obviously, this worked in version 2.3, and now doesn't on v3.
Just wondering what the code is now to continue pushing custom methods to Flickity?

** Test Case :**
Just change Flickity version to use v3 instead of v2:
https://codepen.io/desandro/pen/ZXEGVq

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 v3 migration context, the extras page, and the linked CodePen test case, then inspect how the `Flickity.createMethods.push('_createResizeClass')` call behaves in v3 compared with v2. Done means identifying the supported v3 way to register the custom method and confirming that the equal-cell-height example runs without a console error.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.