Multiselect prompt does not work with initial function
Using the Multiselect prompt, using a function for initial that returns an array does not seem to be working. After stepping through the code I see that types/array.js properly runs the initial function and sets this.initial to the value I expect.
This line properly returns my choice as enabled: https://github.com/enquirer/enquirer/blob/master/lib/types/array.js#L34
But the very next line overrides that and sets all choices to enabled: false. Is there a reason for that?
Then, the following lines appear to try to set enabled again:
https://github.com/enquirer/enquirer/blob/master/lib/types/array.js#L41-L53
The problem is it uses options.initial instead of this.initial. options.initial at this point is still just a function so it doesn't work as expected.
Maybe the simplest solution is to use this.initial instead of options.initial, but I'm not familiar enough with the code to know about unintended side effects.
Source: enquirer/enquirer