Skip to content

Conversation

@lequavis
Copy link

Hello, Lexical team!
I'm very excited to submit my first ever PR, and even happier it's for Lexical!

I've changed the getBlockElement from targeting the base of the list (which could be a ul, or ol), to targeting the list items within, enhancing the overall functionality for lists.

Thanks for reading, and I hope you like it! 😄

@vercel
Copy link

vercel bot commented Jun 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2025 6:46am
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2025 6:46am

@facebook-github-bot
Copy link
Contributor

Hi @lequavis!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 23, 2025
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@ivailop7 ivailop7 added the extended-tests Run extended e2e tests on a PR label Jun 23, 2025
@ivailop7
Copy link
Collaborator

This works much better than I would have expected, including transferring items between lists of different types. That said, the tests are failing, you need to run prettier to format.

@lequavis
Copy link
Author

This works much better than I would have expected, including transferring items between lists of different types. That said, the tests are failing, you need to run prettier to format.

Thanks, I'm new to open-source/contributing to projects (and git for that matter), how do you want me to run prettier, and is that the only failing test?

@ivailop7
Copy link
Collaborator

This works much better than I would have expected, including transferring items between lists of different types. That said, the tests are failing, you need to run prettier to format.

Thanks, I'm new to open-source/contributing to projects (and git for that matter), how do you want me to run prettier, and is that the only failing test?

You can check the command in the package.json

@lequavis
Copy link
Author

@ivailop7 I hope the prettier test now passes. Please LMK, thank you.

Copy link
Collaborator

@ivailop7 ivailop7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @etrepum to sign off on this as well

const anchorElementRect = anchorElem.getBoundingClientRect();
const topLevelNodeKeys = getTopLevelNodeKeys(editor);
const anchorBounds = Rectangle.fromDOM(anchorElem);
const point = new Point(event.x, event.y);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this account for the CSS zoom?

const zoom = calculateZoomLevel(elem);

Copy link
Collaborator

@ivailop7 ivailop7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CSS zoom should be supported, applying 'zoom: 1.3' via Inspector to :root makes the handle unreachable.

@etrepum
Copy link
Collaborator

etrepum commented Jul 1, 2025

It would also be great to update this PR to follow the pull request template. We use the PR titles and descriptions to put together the release notes and any PR that does not match the format adds work for maintainers and makes it hard for people to find things (e.g. it's not easy to know that this closes #7630, and merging this PR wouldn't cause an automation to close it).

@ivailop7
Copy link
Collaborator

ivailop7 commented Jul 7, 2025

@lequavis are you planning on addressing the above comments and adding a test to wrap up this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants