Skip to content

Conversation

@spartan-vutrannguyen
Copy link
Contributor

Description

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Release
  • Other (please describe):

Testing

Screenshots (if applicable)

Additional Notes

oidToCodeChange,
);
request.structureChanges.push(movedEl);
} else {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Kitenite Im facing a problem here, please take a look

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explicitly state the problem? I don't have enough context to understand.

@spartan-vutrannguyen spartan-vutrannguyen marked this pull request as draft February 15, 2025 04:18
element = element.parentElement;
}
} finally {
draggedElement.style.display = '';
Copy link
Contributor

Choose a reason for hiding this comment

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

This is distructive. The element loses its original display value.

): HTMLElement | null {
draggedElement.style.display = 'none';

try {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should early return for certain conditions.

  1. Point is within element
  2. Point is element
  3. Target element should not have children (img, input, etc)

@Kitenite
Copy link
Contributor

Hello, I am migrating the desktop app to a new repository. This repository will now focus on the web version. This PR has been migrated to the new repository: onlook-dev#22. Sorry for the inconvenience, rest assure your work here will also be adapted for the web version (if it hasn't already).

@Kitenite Kitenite closed this May 14, 2025
@Kitenite Kitenite deleted the feat/allow-move-child-element-outside-parent branch May 17, 2025 00:53
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.

3 participants