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

sap.ui.table.Table: pressing active ObjectStatus selects the table row #3252

Closed
boghyon opened this issue May 14, 2021 · 4 comments
Closed
Labels

Comments

@boghyon
Copy link
Contributor

boghyon commented May 14, 2021

URL (minimal example if possible):

https://jsbin.com/zibahol/edit?html,js,output

Steps to reproduce the problem:

  1. Open the above sample
  2. Click on one of the object status controls

What is the expected result?

Row selection is prevented.

What happens instead?

  • The press event of the ObjectStatus is fired
  • And the row select event of the table is also fired.

Any other information? (attach screenshot if possible)

This applies to all sap.ui.table.* tables.

@aborjinik
Copy link
Contributor

I can see that ObjectStatus is in the allowed control list of the sap.ui.table.Table
https://experience.sap.com/fiori-design-web/grid-table/#Table%28ALV%29-CellContent

but it was not in the clickable control list of the table implementation. We will fix this.
Internal incident 2180153935 is opened for this issue.

@stoyanovski
Copy link
Contributor

Hi @boghyon ,
Thanks for your ticket. The issue has been fixed and the fix will be available in version 1.91.
Best Regards,
Oliver

@boghyon
Copy link
Contributor Author

boghyon commented May 18, 2021

@stoyanovski Thank you for the fix. While we're at it, can we also add sapMSwt to the list of clickable controls? I'm aware that sap.m.Switch is not one of those officially supported controls but the Switch has the same issue. When clicked, the row is selected.

@stoyanovski
Copy link
Contributor

Hi @boghyon ,
As the Switch control is not supported, you can implement a workaround on application side like this:
oControl = new sap.m.Switch({state:"{checked}"});
oControl.addEventDelegate({
onclick: function(oEvent){oEvent.setMarked();}
});
When the event is set as marked, the table doesn't process it and the selection won't change.
Best Regards,
Oliver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants