saade / filament-autograph

A Filament package to collect signatures.
https://filamentphp.com/plugins/saade-autograph
MIT License
47 stars 9 forks source link

Add loadStrategy() option #24

Open wout-o opened 2 months ago

wout-o commented 2 months ago

First of all, thank you for creating and maintaining this package!

In my use case, I found that the "idle" load strategy works more reliably than the default "visible" strategy, especially when handling modals on complex pages.

This PR introduces a loadStrategy() option, allowing users to customize the load strategy to suit their needs, rather than relying on the hardcoded default.

To ensure backward compatibility, the default strategy remains "visible", so no breaking changes are introduced.

wout-o commented 1 week ago

@saade Could you please take a look at this?