How set up DEFAULT value for CuratorPicker::make('logo') #216
-
default method not working
Return an error Please help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Make it an array. [1] |
Beta Was this translation helpful? Give feedback.
-
Also don't override afterStateHydrated. There's a lot going on there that you will lose functionality wise if you don't copy it over. |
Beta Was this translation helpful? Give feedback.
-
Yes Array is working ->acceptedFileTypes( ['image/svg+xml'] ) // ->afterStateHydrated( function ( CuratorPicker $component, $state ) { // if( !$state ){ //// $component->state( [16] ); // } // })` Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Make it an array. [1]