Hi,
We have added Fluent UI Modal in our PCF control, in that we have a button that copy inside html body of Fluent UI Modal.
It works properly in desktop, but not work in mobile (Dynamics 365 wave 2).
You can check with long press on the html body content inside the Fluent UI Modal.
Thanks
I got the email for this and here is the summary of the change (from mobile team).
As part of the mobile app UX improvements it was decided to disable text selection for all of our UI elements (overlays / modals / flyouts... etc) to ensure having a native-like experience for our app, and opt-in into text selection manually if needed by using the css rule: user-select: initial; or user-select: all. (similar to how the Native TextView control works on iOS and Android platforms)
Text selection by default is enabled for the UCI Page content to allow users to highlight and copy/paste content manually if needed. This particular PCF control's copies text using DOM's text selection range, recommendation for the control author is to opt-in and enable text selection explicitly for their content div/td element using the user-select CSS rule.
Let me know if you see any issues.
hemant
Can you post some code to show how to reproduce this issue in a simple PCF control?
WarrenBelz
85
Most Valuable Professional
mmbr1606
55
Super User 2025 Season 1
Michael E. Gernaey
52
Super User 2025 Season 1