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

ms2: creation modals bug #378

Merged
merged 16 commits into from
Nov 28, 2024
Merged

ms2: creation modals bug #378

merged 16 commits into from
Nov 28, 2024

Conversation

FelipeTrost
Copy link
Contributor

fixes #359

Summary

The issue was that rc-menu supports arrow movements and prevents the default of the event to avoid the page from scrolling.
Since the ProcessCreationButton and FolderCreationButton were inside such menus, the event listeners also applied to them and disabled the default behaviors of arrow movements.
This behavior can only be turned off by setting the mode of the menu to inline, but inline mode is not supported for our use cases of the menus.

The simplest solution was to refactor the Modals so that they were outside the menus.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

jjoderis
jjoderis previously approved these changes Nov 17, 2024
Copy link
Contributor

@jjoderis jjoderis left a comment

Choose a reason for hiding this comment

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

Some small code refactoring hints but otherwise this can be merged

src/management-system-v2/components/processes/index.tsx Outdated Show resolved Hide resolved
src/management-system-v2/components/processes/index.tsx Outdated Show resolved Hide resolved

This comment has been minimized.

Copy link

CLOUDRUN ACTIONS

✅ Successfully created Preview Deployment.

https://pr-378---ms-server-staging-c4f6qdpj7q-ew.a.run.app

@FelipeTrost FelipeTrost merged commit d4bf95a into main Nov 28, 2024
14 of 15 checks passed
@FelipeTrost FelipeTrost deleted the ms2/folder-modal-bug branch November 28, 2024 19:48
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.

Arrow input disabled in 'Create Folder' modal
3 participants