Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to drop before first child #1961

Closed
wants to merge 36 commits into from

Conversation

ChaituVR
Copy link

Closes #1942

When child elements are aligned to the center or to right or to the end, unable to drop the element to start
previously we only have the ability to add only to the last element or nearby element,
with this PR user can add before the first element also

Issue: https://codepen.io/jjeff/pen/PozoJVQ
Fix: https://codepen.io/ChaituVR/pen/wvWbMXB

waynevanson and others added 30 commits August 7, 2020 15:27
…ortableJS#1875)

* deps: install dev-deps for ts, tests and friends

* tests: replace test.js with test.ts and fp

* change compat tests

* ci: replace tests to use npm as per usual
…1878)

The doc was missing the case of keeping the default insertion point based on the direction.
* refactor(tests): move HTML fixtures into own dir

* refactor(tests): separate e2e tests into folders

* refactor(deps): packagejson reformat

* refactor(deps): remove cypress from dev deps

* refactor(ci): add description to circleci
* refactor(tests): move HTML fixtures into own dir

* refactor(tests): separate e2e tests into folders

* refactor(deps): packagejson reformat

* refactor(deps): remove cypress from dev deps

* refactor(ci): add description to circleci

* build: bundles with rollup ^2.14 and typescript

* dist: create new dist files

* chore: bump minor version

* build(refactor): removes unused babel plugin
* build: upgrade to 1.11.0

* tests(fix): emit exit code 1 on fail
* build: upgrade to 1.11.0

* tests(fix): emit exit code 1 on fail

* refactor: microbundle and typescript

* ci: ensure lerna is globally available

* build: use yarn and workspaces

* use lerna

* build: add private to sortbale repo

* v1.11.1

* ci: use yarn and lerna together

* fix ci

* tests: fix tests
…S#1914)

* refactor: remove code formattings config files

* docs: add more detail to contribution guidelines

* docs: remove custom templates

* docs: update bug report issue

* docs: add discussion template

* docs: update featue template
…-links

Readme invalid hyperlinks corrected
…ableJS#1921)

* refactor: remove code formattings config files

* docs: add more detail to contribution guidelines

* docs: remove custom templates

* docs: update bug report issue

* docs: add discussion template

* docs: update featue template

* fix(build): build dist/sortablejs, was missing prior

* build(deps): yarn upgrade

* v1.11.2-alpha.4
* refactor: remove code formattings config files

* docs: add more detail to contribution guidelines

* docs: remove custom templates

* docs: update bug report issue

* docs: add discussion template

* docs: update featue template

* fix(build): build dist/sortablejs, was missing prior

* build(deps): yarn upgrade

* v1.11.2-alpha.4
* refactor: remove code formattings config files

* docs: add more detail to contribution guidelines

* docs: remove custom templates

* docs: update bug report issue

* docs: add discussion template

* docs: update featue template

* fix(build): build dist/sortablejs, was missing prior

* build(deps): yarn upgrade

* v1.11.2-alpha.4

* fix(build): exports modules correctly

This was broken, visible, and closes SortableJS#1891.
* Create composer.json

* Change project name in composer.json

* Fix authors listed in composer.json

* Update repo source in composer.json

Co-authored-by: Wayne Van Son <[email protected]>

* Update "issues" link in composer.json

Co-authored-by: Wayne Van Son <[email protected]>

* Update homepage link in composer.json

Co-authored-by: Wayne Van Son <[email protected]>

* Update package name in composer.json

Co-authored-by: Wayne Van Son <[email protected]>

* Remove legacy file from composer.json files list

Co-authored-by: Derek DeRaps <[email protected]>
Co-authored-by: Wayne Van Son <[email protected]>
Fix IE11 "SCRIPT16389: Unspecified error." when dragging element

Could not pull in SortableJS#1904 due to merge errors, so this PR was created instead.
CyrilKrylatov and others added 6 commits September 25, 2020 02:29
Fix demo link
@waynevanson renamed the repo form `Sortable` to `sortablejs` so users don't get confused on which package to install
@jjeff
Copy link

jjeff commented Nov 29, 2020

I've tested this and it works.

@jjeff
Copy link

jjeff commented Dec 16, 2020

Giving this a nudge. It would be great if @RubaXa, @owen-m1, @waynevanson, or one of the other core people signed off on this so we can get this fixed in the next version of Sortable.

Thanks!

@jjeff
Copy link

jjeff commented Jan 8, 2021

Just tested with Sortable 1.13.0 and while a similar issue has been fixed, it looks like this one has not.

@owen-m1
Copy link
Member

owen-m1 commented Jan 8, 2021

@jjeff Yes I am still looking at this one... it isn't an issue as it is the intended to only work for the last in the list, but I will add this one for the next version

@jjeff
Copy link

jjeff commented Jan 8, 2021

@jjeff Yes I am still looking at this one... it isn't an issue as it is the intended to only work for the last in the list, but I will add this one for the next version

Thanks @owen-m1!

FWIW, here is the original issue with a GIF animation illustrating the problem.

@owen-m1
Copy link
Member

owen-m1 commented Feb 7, 2021

@ChaituVR Would you like to rebase this or redo this PR with the current master branch? A lot of commits were rolled back. Or I could just copy and paste your code and add it myself if you are okay with that

@owen-m1
Copy link
Member

owen-m1 commented Feb 10, 2021

nvm, it requires some modifications so I will do it

@owen-m1
Copy link
Member

owen-m1 commented May 2, 2021

Added in this commit: 77e0481

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flex-end breaks dragging to parent element
10 participants