@usefillo/react 0.21.0 → 0.23.0
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/dist/index.js +2 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3376,7 +3376,8 @@ function ResolvedForm(props) {
|
|
|
3376
3376
|
prevPageIndex.current = api.pageIndex;
|
|
3377
3377
|
const container = blocksRef.current?.parentElement;
|
|
3378
3378
|
const heading = container?.querySelector(".fillo-page-title, .fillo-title");
|
|
3379
|
-
const
|
|
3379
|
+
const headingRect = heading?.getBoundingClientRect();
|
|
3380
|
+
const target = headingRect && headingRect.width > 1 && headingRect.height > 1 ? heading : blocksRef.current;
|
|
3380
3381
|
if (target) {
|
|
3381
3382
|
if (!target.hasAttribute("tabindex")) target.setAttribute("tabindex", "-1");
|
|
3382
3383
|
target.focus();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usefillo/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Headless React components for embedding Fillo forms natively in your product.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@usefillo/core": "^0.
|
|
46
|
+
"@usefillo/core": "^0.23.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": "^18.0.0 || ^19.0.0",
|