Tree Select Component – Default Value Not Displayed When Set via Property

Hello,

I would like to report another issue, this time related to a “custom component” we’ve built based on the “Tree Select” component from the marketplace.

We’re experiencing an unexpected behavior regarding how the “Selected Option Key(s)” value is handled:

  • When the value is set directly via the “component config panel”, the component works correctly and displays the default value.

  • However, when the same value is provided via “property”, the value is “not displayed” in the component — even though the correct option seems preselected in the dropdown when it is opened.

Could you please help us investigate what is happening?

I´ve created a page where this issue can be observed:

Btw, we are on a “Backendless Pro” plan and have an active support contract.

Backendless Pro info:
-IP address: 108.129.85.96
-Domain: https://bec.swstudio.es/
-Application: iLeo
-Page: test

Thank you.

Regards,
Manuel

I tested it in my app(cloud), and it works well with the handler.
You could add logs in your handler to see if you get the correct value and check if an option with this value really exists.

If after that you wont find an issue, please create an testing account with needed app/page and share it with us.

I found credentials in another topic and tested it in your app. I see you changed the logic of the component, and the problem is located in your changes.

Hello @Dima,

Thanks for the prompt reply.
I did the tests you recommend last week.
I´m going to send you a private message with the tester credentials plus the server and page info.

Thank you!

Regards,
Manuel

Check the last message please

I found credentials in another topic and tested it in your app. I see you changed the logic of the component, and the problem is located in your changes.

Just saw your new reply :slight_smile:
Great! So no need to send you the credentials.

But i don´t understand what is happening.
Did you check this page (test)?:

This page also shows the original component (tree select), case 3, and even in this case, the default value set is not displayed. Could the component be corrupted?

What do i need to do for this to work (for the custom component AND the original one)?

Thanks!

Regards,
Manuel

Yes, I check this page.

Could the component be corrupted?

I think yes, for reference you always could check it at Cloud. And as I see at Cloud it works well. You could try to reinstall the original one.

Also there is a chance that your component overwrites the original one, in this case fix in your code will fix all of them.

Hello @Dima,

I removed our custom Tree Select component and kept the original one. And… things started working!

It seems that having both active causes a conflict — I’m not sure why, but the results speak for themselves.

Thank you for your assistance.

Regards,
Manuel