Skip to content

🐛 [Bug]: Calculator Operator Buttons Reset or Handle Input Incorrectly #551

@Jwngma-basumatary

Description

@Jwngma-basumatary

📝 Description

The Calculator is not handling operator button inputs correctly. After entering a number and pressing an operator such as +, the calculator behaves unexpectedly instead of continuing the calculation flow properly.

🔄 Steps to Reproduce

  1. Open the Calculator.
  2. Enter a number (example: 8).
  3. Press an operator button such as +, -, ×, or /.
  4. Observe incorrect calculator behavior.

🎯 Expected Behavior

  • The calculator should correctly display and process the selected operator.
  • Users should be able to continue entering the next number for calculation.

❌ Actual Behavior / Error Logs

  • Calculator resets or behaves unexpectedly after pressing an operator button.
  • Expression handling appears broken.

💻 Environment

  • OS: [e.g. Windows 11, macOS]
  • Browser: [Google Chrome]
  • Project: [Calculator]

  • I am a registered GSSoC 2026 contributor.
  • I want to be assigned to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions