Pass a config object to ConfigurableFocusTrapFactory.create
ProprietaryCDK 22 removed the create(element, deferCaptureElements: boolean) overload of ConfigurableFocusTrapFactory. Rewrites create(element, true) to create(element, {defer: true}), and marks calls whose second argument is a boolean expression other than a literal.
org. openrewrite. angular. cdk. MigrateFocusTrapFactoryCreatemod run . --recipe= org. openrewrite. angular. cdk. MigrateFocusTrapFactoryCreateInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.