gray-mueller / gray-mueller/restaurant-ordering-system-using-react-js

Unintended Toggling of Buttons in "Restaurants Section" Section of Admin Dashboard

Open
#380 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
In the Enatega Multivendor Admin Dashboard, specifically in the "Restaurants section" section, there is an issue where toggling one button on or off intermittently triggers the system to toggle other buttons that were not intended to be changed. This behavior is unexpected and can lead to unintended changes in the settings of restaurants, causing potential confusion and errors in the admin interface.

To Reproduce
Steps to reproduce the behavior:

Log in to the Enatega Multivendor Admin Dashboard.
Navigate to the "Restaurants section" section.
Attempt to toggle a specific button (e.g., enable/disable a feature) for a restaurant.
Observe that other buttons in the vicinity may also be toggled without explicit user interaction.
Expected behavior
Toggling one button in the "Restaurants" section should only affect the state of that specific button, and other buttons should remain unchanged unless explicitly modified by the user.

Screenshots
https://github.com/ninjas-code-official/food-delivery-multivendor/assets/152266796/b81cddc8-08ac-4f08-9c55-606b75035a22

Desktop:

Browser: chrome

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the problem in the Admin Dashboard's Restaurants section using Chrome, following the steps and screenshot in the issue. Locate the restaurant button components and their toggle handlers, then verify that changing one control leaves neighboring controls unchanged. Done means the reported unintended toggling no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.