ryangjchandler / filament-navigation

Build structured navigation menus in Filament.
MIT License
162 stars 61 forks source link

clear add child form before showing #102

Open msajjad650 opened 9 months ago

msajjad650 commented 9 months ago

Problem In the navigation,

  1. If you click edit an item, popup will show with form pre-filled,
  2. Cancel the popup and then click on add child,
  3. add child popup will show the previous data filled in form.

Solution I added $this->mountedItem = null; $this->mountedActionData = [];

in addChild function in HandlesNavigationBuilder trait