Give elementRef an argument

In order to support doing things like clearing card input fields.

See: https://github.com/stripe/react-stripe-elements/issues/26
This commit is contained in:
Ray Vanderborght
2018-03-16 16:13:22 -07:00
parent 80c15edab7
commit d6aa691771
+1 -1
View File
@@ -47,7 +47,7 @@ export namespace ReactStripeElements {
className?: string;
elementRef?(): void;
elementRef?(ref: any): void;
onChange?(event: ElementChangeResponse): void;