microsoft / powercat-creator-kit

This toolkit helps create well-designed Power App experiences on the web & mobile. It contains a component library; PCF controls and other utilities that increase developer productivity.
MIT License
315 stars 52 forks source link

[BUG]: Canvas component not working as expected on iOS only #288

Open atanuiem28 opened 1 year ago

atanuiem28 commented 1 year ago

Describe the bug Dialog with two button has issue in iPad (iOS) We are using Creator Kit to design dialog. When we click some button a dialog will appear with two button (Cancel and abandon). In power app player it is working fine in windows environment. But in iOS(ipad) first time dialog disappear when click on any button but it will not doing anything. When second time call dialog that time it is selecting whole area of both button and performing the action according to the button click. Need to understand why this is happening different in iPAD. Is it a known UI issue of iOS? Is there any alternate way to achieve same behaviour as we are getting in windows?

To Reproduce Steps to reproduce the behavior:

  1. Go to '...' : Use creator kit dialog box with two button and access it from ipad (iOS)
  2. Click on '....' Click on any button to appear dialog and try to click on any one button, first time it will not work just close the dialog, second time whole area of two button got selected and do the work. Sometime no control which option trigger.

Expected behavior clearly user should click on the different button and corresponding code should work. It is doing expecting behaviour from power app player in windows environment but not in ios (using from ipad Air)

Screenshots Screen shot attaching

Additional context Add any other context about the problem here.

ios_dialog issue

AB#980

denise-msft commented 1 year ago

@atanuiem28 do you know if you experience the same behavior on iOS with other canvas components that are not part of the Creator Kit? If you create a new component library in a solution, and then create a component that uses buttons, are you able to reproduce the issue on iOS ? Please help us determine if this is a Creator Kit specific issue or issue with Power Apps canvas custom components all-up on iOS.

yaseralhosani commented 1 year ago

No issues found in my iPhone.

atanuiem28 commented 1 year ago

@denisem-msft There is no problem for single button and it is only coming for all dialog where we have used two option. Also it is happening only for ipad (ios) but when we are using power player in windows no issue. I have raised this issue to MS support team, they has mentioned this is an issue of Creator Kit.

DTronD commented 1 year ago

Could this be related to issue #320 ?

denise-msft commented 8 months ago

Thank you for the validation. We will add this to our backlog.

jh-sigmadx commented 7 months ago

The same bug exists in the "Panel" component in the Creator Kit. (Which makes sense, as it uses exactly the same mechanism)

iOS does not recognise which button was clicked - Self.SelectedButton.Label is always just the first button in the table, regardless of which one is actually selected.

Works fine in Windows, browser, and on Android Power Apps.