I have created 2 custom components (buttons):
(1.) one that takes to a page, and
(2.) another that logs out on click.
While the custom component with page navigation works, the one with logout service attached to it does not work. When I add these custom components to a page. Clicking on button from #1 above correctly navigates me to a new page. Clicking on #2 (logout button) does not do anything.
Yes, there is an actual working logout service connected to this button, which should fire on click. This logout service is working fine at other places in my app. I did check the "data" tab for the logout custom button and it has the "log out service" listed there.
Reproducing this is fairly simple:
----------------------------------------(1.) Create a logout service (test that it works)
(2.) Create a button, call it "Log-out".
(3.) Execute logout service on click of "Log-out" button.
(4.) Now save this as a "custom component".
(5.) Create new page, add the "custom component" from #4 above to this page.
(6.) Test (click on the button created from custom component in #5 above does not log out).
--