The getSelection function incorrectly displays the connector end type.

  • 31 March 2023
  • 3 replies

Badge +2

If you select a segment on the board (a connector with empty ends) and write this code:

let arrSelect = await miro.board.getSelection();

then the end of the segment will be defined as "stealth", although in fact it should be "none" (fig. 1)

If you select the first value in the list with the beginning of the arrow (Fig. 2), then it is defined as "none", which is also not true.

The function works correctly with all other types of ends.

3 replies

Userlevel 6
Badge +4

Hi @Anton Shherbinin,

Many thanks for raising this with us. I’ve shared this with our team and we will work on a fix as soon as possible.

Thanks again,​​​​​​

Userlevel 6
Badge +4

Hi @Anton Shherbinin,

Thanks again for bringing this to our attention. Our team has just released a fix for this issue, and we believe it should be resolved.

Let us know if you still see any issues. Thanks!

Badge +2

I tested the script, now it works, thank you.