Skip to content

[Bug]: 3.1.49 won't populate the current value on edit page #151

New issue

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

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

Already on GitHub? # to your account

Open
ariaieboy opened this issue Apr 5, 2025 · 4 comments
Open

[Bug]: 3.1.49 won't populate the current value on edit page #151

ariaieboy opened this issue Apr 5, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@ariaieboy
Copy link
Contributor

What happened?

I have a select tree that, after updating to version 3.1.49, doesn't show the current value when editing a resource.

It works fine for creating or editing the value, but doesn't show the current value when we want to edit a resource.

It works perfectly fine on version 3.1.48

How to reproduce the bug

SelectTree::make('category_id')
                                ->dehydrated(true)
                                ->relationship('category', 'title', 'parent_id')
                                ->searchable()
                                ->reactive()
                                ->required()

Package Version

3.1.49

PHP Version

8.4.0

Laravel Version

12.x

Which operating systems does with happen with?

No response

Notes

No response

@ariaieboy ariaieboy added the bug Something isn't working label Apr 5, 2025
@CodeWithDennis
Copy link
Owner

I have reverted PR #149 that has might have caused this, can you update and check again?

@ariaieboy
Copy link
Contributor Author

yes 3.1.50 works great again

@CodeWithDennis
Copy link
Owner

Seems like it caused some issues. @lotestudio #149

@kazak71
Copy link

kazak71 commented Apr 14, 2025

I see problem is not solved. I tested from v3.1.48 to v3.1.51.
But I found if you are in edit page and make refresh, current value is populated.
Also if you are in List page, make manual refresh and then open edit page, then value is populated.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants