TextEditingApp icon indicating copy to clipboard operation
TextEditingApp copied to clipboard

Bug Report : Style or Size effect is being applied to the newest element instead of the selected one

Open may-tas opened this issue 1 year ago • 13 comments

Describe the bug

  • When multiple text elements are present on the canvas/frame, any font-related changes (such as size, color, font family, weight, or style like bold/italic) are incorrectly applied to the most recently added text element instead of the currently selected one. This occurs even when a different text element is explicitly selected via the selection tool.

  • The issue suggests that font control actions are not respecting the active selection state and defaulting to the last inserted text object.

To Reproduce Steps to reproduce the behaviour:

  1. Open the editor and create a new frame or canvas.
  2. Add a text element to the frame (e.g., Text A with the text "Original Text", size 20).
  3. Add another text element to the same frame (e.g., Text B with the text "New Text").
  4. Use the selection tool to explicitly select the first text element (Text A).
  5. Attempt to apply various font changes, such as:
  • Change font size to 25
  • Change font color
  • Toggle bold or italic
  • Change font family
  • With Text A selected, change the size and choose a new size (e.g., 25).

Expected behavior

  • All font-related actions (size, color, style, family, etc.) should apply to the currently selected text element (Text A in this case), and not affect any other elements unless explicitly selected.

Actual behavior

  • Regardless of which text element is selected, font controls (size, color, style, etc.) are always applied to the most recently added text element (Text B), while the selected text element (Text A) remains unchanged.

Additional details

  • This issue significantly disrupts the user experience by:
  • Leading to confusion, especially when working with multiple text elements.
  • Forcing users to delete and recreate text elements to achieve the desired formatting.

may-tas avatar Jul 22 '25 13:07 may-tas

Thank you for opening this issue! 🚀 Our team will review it soon. Please make sure you've included all relevant details and followed our Contributing Guidelines. For questions about our project, check out our README and Code of Conduct.

github-actions[bot] avatar Jul 22 '25 13:07 github-actions[bot]

Please assign to me @may-tas

MannemSumanaSri avatar Jul 22 '25 16:07 MannemSumanaSri

Assigned! @MannemSumanaSri

may-tas avatar Jul 22 '25 17:07 may-tas

Welcome to the project!

may-tas avatar Jul 22 '25 17:07 may-tas

Thank you! Glad to be part of the project. I’ve been assigned the issue #7 (Bug Report: Text Size Change Applied to Newest Text Instead of Selected One) and I will start working on it. Looking forward to contributing and learning

MannemSumanaSri avatar Jul 22 '25 17:07 MannemSumanaSri

I think other people deserve a chance now for this issue.

I am increasing the scope and level of this issue to Level 3.

Also I am increasing the tasks.

may-tas avatar Jul 29 '25 14:07 may-tas

@PearlGrell @Rishi-1512 @Rudraksha-git Would you guys want to try this issue, its level 3. whoever comments first will be assigned.

may-tas avatar Jul 29 '25 14:07 may-tas

Hey, please assign to me @may-tas

PearlGrell avatar Jul 29 '25 14:07 PearlGrell

@PearlGrell Assigning. Please make sure to resolve this issue with care, its one of the most important issues, rest of the development will be based on it.

may-tas avatar Jul 29 '25 14:07 may-tas

https://github.com/user-attachments/assets/6c793f4f-9b0a-47e3-912d-454ce18b0d37

hows this?

PearlGrell avatar Jul 30 '25 11:07 PearlGrell

@PearlGrell Looks good, can you also check if font is changing, try changing from Arial to something different.

may-tas avatar Jul 30 '25 12:07 may-tas

yes the font is also changing

PearlGrell avatar Jul 30 '25 12:07 PearlGrell

@PearlGrell Great.

may-tas avatar Jul 30 '25 13:07 may-tas