Page 1 of 2

Invisible element can't be shown with show() method after last weekend's update

Posted: Mon Oct 20, 2014 8:16 pm
by Kal

In my project I have several places where I have a grid that is initially invisible, but then becomes visible after some actions are taken. Used to work fine till the weekend's update.

Now, if the grid starts out hidden, it can never be shown. However if it starts out visible, it can be hidden then shown.

I have shared a project called Problems10-20-14 with Support, which illustrates the problem. Ignore the bottom part of the screen, this is a different problem, for which I will open another bug report.

Thanks,
-Kal.


Invisible element can't be shown with show() method after last weekend's update

Posted: Mon Oct 20, 2014 9:06 pm
by obullei

Hello!
Could you check are there any errors in console?
This should help:
http://devcenter.appery.io/documentat...


Invisible element can't be shown with show() method after last weekend's update

Posted: Mon Oct 20, 2014 10:30 pm
by Kal

Nope, no errors logged in the console. Please take a look at the project I shared and look for yourself.

Thanks,
-Kal.


Invisible element can't be shown with show() method after last weekend's update

Posted: Tue Oct 21, 2014 2:52 am
by Yurii Orishchuk

Hi Kal,

The problem is in "Visible" property. http://prntscr.com/4y50qw/direct

That's a bug and we will update you here when this bug will be fixed.

Workaround is to "hide" element with other way:

1 Add "page load" event handler.

2 Use "Set property" as action and "Visible" with value "false". See details:

http://prntscr.com/4y52hd/direct

Also you you can use other 2nd step(instead):
2 Use "Run JavaScript" action type. And populate it with following code:

pre

Apperyio("componentName").hide();

/pre

After these steps you can show your events like you did it before.

Regards.


Invisible element can't be shown with show() method after last weekend's update

Posted: Tue Oct 21, 2014 3:43 am
by Kal

Thanks for the suggestion Yurii, but it is not very practical for me. I have this app with MANY MANY hidden elements that get turned on at different times. For me to track down all of them, set them visible, then set them invisible programmatically is a huge pain. The app has been working fine for a while now, and suddenly a small update I made broke the whole app for every user. This was not a very acceptable situation!

Hope this can be fixed soon.

Thanks,
-Kal.


Invisible element can't be shown with show() method after last weekend's update

Posted: Tue Oct 21, 2014 6:53 pm
by Kal

Can you give me an indication if this is likely to be fixed soon (as in today?). If not, I will need to go ahead and make all the changes and re-test the entire code base, but if that is the case, I would rather get started at once.

Thanks,
-Kal.


Invisible element can't be shown with show() method after last weekend's update

Posted: Tue Oct 21, 2014 8:08 pm
by Kateryna Grynko

Hi Kal,

You can run method code.hide();/code for any set of components using CSS selector as follows:pre$(".ui-checkbox").hide();/pre


Invisible element can't be shown with show() method after last weekend's update

Posted: Tue Oct 21, 2014 8:22 pm
by Kal

Good thought, but I have many individual components that need hiding, not a set of components of the same type :(

OK, I guess I will just go ahead and code around this bug...


Invisible element can't be shown with show() method after last weekend's update

Posted: Tue Oct 21, 2014 8:35 pm
by Kateryna Grynko

Hi Kal,

Probably it will be better. Please let us know about the result of if you need any help!


Invisible element can't be shown with show() method after last weekend's update

Posted: Tue Oct 21, 2014 10:10 pm
by Kal

Done. Wasn't too bad...