React Azure Map Popup - text is not selectable

Anisha KC 125 Reputation points Microsoft Employee
2023-07-25T16:59:00.24+00:00

Hello,

I am using the React Azure Maps package: https://github.com/Azure/react-azure-maps

However, when I add a popup to the map, the text inside the popup is not selectable. I can't highlight and select the text to copy it.

I have already changed the CSS to include:

-webkit-user-select: text;
 -moz-user-select: text;
 -ms-user-select: text;
 user-select: text;

But, this only changes the cursor when I am over the text in the popup, it still doesn't allow me to select the text.

Is there any way I can

From what I've seen, it seems like it has something to do with mouse down event listeners but I don't know if I can override that. If I remove it (from devtools in browser), text is highlightable and selectable.

User's image

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
833 questions
0 comments No comments
{count} votes

Accepted answer
  1. rbrundritt 20,836 Reputation points Microsoft Employee Moderator
    2023-07-25T19:19:27.97+00:00

    This is a known issue and a duplicate of this thread: https://learn.microsoft.com/en-us/answers/questions/153559/popup-with-input-box-not-working-on-azure-map A bug was logged with the Azure Maps team. As a workaround, you can add mouse down events to the input elements and set focus as described in this other thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.