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(@clayui/form): LPD-36696 DualListBox adds children and don't disable left right buttons if no items are selected #5874

Merged
merged 6 commits into from
Oct 31, 2024

Conversation

pat270
Copy link
Member

@pat270 pat270 commented Sep 23, 2024

https://liferay.atlassian.net/browse/LPD-36696

I added children to the component so we can pass in things like an error message. I also removed disabling the move buttons if length is 0.

duallistbox-new

…ble left right buttons if no items are selected
…isable left / right arrows if it exceeds max items
Copy link
Member

@matuzalemsteles matuzalemsteles left a comment

Choose a reason for hiding this comment

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

I think that instead of delegating the implementation of the error to the developer we can add this internally in the component, especially if it is a default behavior.

@matuzalemsteles
Copy link
Member

Just an update on this, I spoke to Patrick and will get to work on it, should have something this week.

@matuzalemsteles
Copy link
Member

I'm moving the entire validation system to the component as well as the error message with translation support, also adding new APIs to configure the maximum number of items for both sides.

@matuzalemsteles
Copy link
Member

Hey @pat270 What do you think of these changes? Is this a rule that can be applied to all cases?

@pat270
Copy link
Member Author

pat270 commented Oct 30, 2024

@matuzalemsteles It's not working correctly for me for some reason. Here is a gif of what I'm seeing.
duallistbox

@pat270
Copy link
Member Author

pat270 commented Oct 31, 2024

@matuzalemsteles I got it to work. Some of the left/right error stuff just needed to be swapped.

@matuzalemsteles matuzalemsteles merged commit a679275 into liferay:master Oct 31, 2024
4 checks passed
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.

2 participants