Feature #19392

FE - React - Drawer submenu not expand

Added by chok yee fan 10 months ago. Updated 9 months ago.

Status:ClosedStart date:11 January 2024
Priority:NormalDue date:
Assignee:chok yee fan% Done:

0%

Category:-Spent time:-
Target version:-

Description

issue
------
Drawer childmenu not highlight after select the menu.

expected
------
Drawer childmenu SHOULD highlight after select the menu.

Noted: currently dont have any example. just create it to do the testing.

Screenshot 2024-01-17 at 3.59.57 PM.png - handleReset at Form (82 KB) chok yee fan, 17 January 2024 04:00 PM

Screenshot 2024-01-17 at 4.00.18 PM.png - handleReset method (42.2 KB) chok yee fan, 17 January 2024 04:00 PM

History

#1 Updated by chok yee fan 9 months ago

  • Subject changed from FE - React - Drawer submenu not highlight to FE - React - Drawer submenu not expand

issue
------
Drawer childmenu not expand after select the menu.

expected
------
Drawer childmenu SHOULD expand after select the menu.

Noted: currently dont have any example. just create it to do the testing

#2 Updated by Amirul Umar Pandai 9 months ago

  • Status changed from New to Resolved
  • Assignee changed from Amirul Umar Pandai to chok yee fan

Changed App.routing.tsx structure to include Drawer as a root component.

All Drawer instances besides root component has been removed, replaced with calls to useOutletContext to reset page data on clicking drawer item.

Note: example is not committed. Create your own after pulling to test.


Drawer parent component using React Router Outlet
https://dev.silverlakemobility.com/gitlab/mleb-solution-domain/smesd100/mleb-iam/-/commit/0d4c5c9b4f43b622343671a134d79abdff8f2b6a

#3 Updated by chok yee fan 9 months ago

  • Status changed from Resolved to Feedback
  • Assignee changed from chok yee fan to tanchen yee

for u to test ur module

#4 Updated by chok yee fan 9 months ago

issue
-----
extra code at detail form page,

expected
-----
remove the extra code at detail form page. otherwise need to find a way how to archive calling single method avoid duplicate code.

#5 Updated by Amirul Umar Pandai 9 months ago

  • Status changed from Feedback to Resolved
  • Assignee changed from Amirul Umar Pandai to chok yee fan

#6 Updated by chok yee fan 9 months ago

  • Status changed from Resolved to Feedback
  • Assignee changed from chok yee fan to Amirul Umar Pandai

careless, always need double check the code

issue
-----
extra code at detail form page MUTATION

expected
-----
remove the extra code at detail form page MUTATION

#7 Updated by Amirul Umar Pandai 9 months ago

  • Assignee changed from Amirul Umar Pandai to chok yee fan

#8 Updated by chok yee fan 9 months ago

  • Status changed from Feedback to Closed

after review the code should not more

Also available in: Atom PDF