@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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 1.0.0-next.28 (2025-02-20)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - safari click handler and redirect handling ([#361](https://github.com/ory/elements/pull/361))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Jonas Hungershausen
10
+
1
11
  ## 1.0.0-next.27 (2025-02-18)
2
12
 
3
13
  ### 🩹 Fixes
package/dist/index.js CHANGED
@@ -881,12 +881,8 @@ function useOryFormSubmit(onAfterSubmit) {
881
881
  flowContainer.setFlowContainer(flow);
882
882
  methods.reset(computeDefaultValues(flow.flow.ui.nodes));
883
883
  };
884
- const onRedirect = (url, external) => {
885
- if (external) {
886
- window.location.href = url;
887
- return;
888
- }
889
- window.location.href = url;
884
+ const onRedirect = (url, _external) => {
885
+ window.location.assign(url);
890
886
  };
891
887
  const onSubmit = async (data) => {
892
888
  switch (flowContainer.flowType) {