@ory/elements-react 1.0.0-next.27 → 1.0.0-next.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1834,6 +1834,10 @@ var DefaultPageHeader = (_props) => {
1834
1834
  ] }) }) });
1835
1835
  };
1836
1836
 
1837
+ // src/theme/default/components/settings/settings-oidc.tsx
1838
+ import { useEffect as useEffect4, useState as useState4 } from "react";
1839
+ import { useFormContext as useFormContext7 } from "react-hook-form";
1840
+
1837
1841
  // src/theme/default/assets/icons/trash.svg
1838
1842
  import * as React25 from "react";
1839
1843
  import { jsx as jsx52 } from "react/jsx-runtime";
@@ -1844,8 +1848,6 @@ var SvgTrash = (props) => {
1844
1848
  var trash_default = SvgTrash;
1845
1849
 
1846
1850
  // src/theme/default/components/settings/settings-oidc.tsx
1847
- import { useFormContext as useFormContext7 } from "react-hook-form";
1848
- import { useEffect as useEffect4, useState as useState4 } from "react";
1849
1851
  import { jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
1850
1852
  function DefaultSettingsOidc({
1851
1853
  linkButtons,
@@ -1886,8 +1888,10 @@ function UnlinkRow({ button }) {
1886
1888
  const provider = (_b = extractProvider((_a = button.meta.label) == null ? void 0 : _a.context)) != null ? _b : "";
1887
1889
  const Logo = attrs.value in provider_logos_default ? provider_logos_default[attrs.value] : provider_logos_default.generic;
1888
1890
  const localOnClick = () => {
1889
- setClicked(true);
1890
1891
  button.onClick();
1892
+ setTimeout(() => {
1893
+ setClicked(true);
1894
+ }, 100);
1891
1895
  };
1892
1896
  useEffect4(() => {
1893
1897
  if (!isSubmitting) {