Bug Report : Style or Size effect is being applied to the newest element instead of the selected one
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:
- Open the editor and create a new frame or canvas.
- Add a text element to the frame (e.g., Text A with the text "Original Text", size 20).
- Add another text element to the same frame (e.g., Text B with the text "New Text").
- Use the selection tool to explicitly select the first text element (Text A).
- 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.
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.
Please assign to me @may-tas
Assigned! @MannemSumanaSri
Welcome to the project!
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
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.
@PearlGrell @Rishi-1512 @Rudraksha-git Would you guys want to try this issue, its level 3. whoever comments first will be assigned.
Hey, please assign to me @may-tas
@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.
https://github.com/user-attachments/assets/6c793f4f-9b0a-47e3-912d-454ce18b0d37
hows this?
@PearlGrell Looks good, can you also check if font is changing, try changing from Arial to something different.
yes the font is also changing
@PearlGrell Great.