Skip to content

Fix departing rerender counters#1006

Closed
chervyakovru wants to merge 1 commit intofinal-form:mainfrom
chervyakovru:fix/styles
Closed

Fix departing rerender counters#1006
chervyakovru wants to merge 1 commit intofinal-form:mainfrom
chervyakovru:fix/styles

Conversation

@chervyakovru
Copy link
Contributor

@chervyakovru chervyakovru commented Aug 17, 2022

Right now forms RenderCounts move to top right corner of window. Added position: relative to form for catching counter in form

https://codesandbox.io/s/github/final-form/react-final-form/tree/master/examples/subscriptions

Now:
image

Fixed:
image

Right now forms RenderCounts move to top right corner of window. Added position: relative to form for catching counter in form
Now:
Fixed:
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit a0032ba:

Sandbox Source
React Final Form - Simple Example Configuration
React Final Form - Synchronous Record Level Validation Configuration
React Final Form - Synchronous Field Level Validation Configuration
React Final Form - Submission Errors Configuration
React Final Form - Subscriptions Example Configuration
React Final Form - Subscriptions Example PR

@chervyakovru
Copy link
Contributor Author

@erikras can you merge it, please? This simple update has already helped several of my friends

Copy link
Contributor

@erikras-richard-agent erikras-richard-agent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review by Richard (Team Lead)

Fix for departing rerender counters. PR is from 2023 — will need to verify relevance against current v7 codebase and check for conflicts.

@erikras-richard-agent
Copy link
Contributor

@coderabbitai review

@coderabbitai
Copy link

coderabbitai bot commented Feb 13, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai
Copy link

coderabbitai bot commented Feb 13, 2026

Warning

Rate limit exceeded

@erikras-richard-agent has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 14 minutes and 55 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Comment @coderabbitai help to get the list of available commands and usage tips.

@erikras-richard-agent
Copy link
Contributor

Thank you for the contribution, though this was a minor CSS-only change, @chervyakovru! This PR targets the old JS codebase which has since been rewritten in TypeScript, so it's no longer directly mergeable. We'll evaluate whether the underlying issue still exists in the current code. Closing with appreciation. 🙏

@erikras-richard-agent
Copy link
Contributor

Update: This was a minor CSS change in an example file. No bug to fix in the current codebase.

erikras-dinesh-agent pushed a commit that referenced this pull request Feb 13, 2026
Fixes #1006

Problem:
In the subscriptions example, the render counter overlays drift to the
top-right corner of the window instead of staying positioned relative
to their respective forms.

Root Cause:
The counters use 'position: absolute' but the form element lacks
'position: relative', causing them to position relative to the viewport
instead of the form container.

Solution:
Added 'position: relative' to the form element in Styles.js. This
establishes the form as the positioning context for the absolutely
positioned render counters.

Changes:
- examples/subscriptions/Styles.js:
  - Added 'position: relative' to form CSS rule (line 56)

Impact:
✅ Render counters stay anchored to their forms
✅ Visual layout matches intended design
✅ No functional changes
✅ Example-only change, no library code affected

Originally reported by @chervyakovru in PR #1006 (closed as stale).

Co-authored-by: Daniil Chervyakov <chervyakovru@users.noreply.github.com>
erikras pushed a commit that referenced this pull request Feb 13, 2026
Fixes #1006

Problem:
In the subscriptions example, the render counter overlays drift to the
top-right corner of the window instead of staying positioned relative
to their respective forms.

Root Cause:
The counters use 'position: absolute' but the form element lacks
'position: relative', causing them to position relative to the viewport
instead of the form container.

Solution:
Added 'position: relative' to the form element in Styles.js. This
establishes the form as the positioning context for the absolutely
positioned render counters.

Changes:
- examples/subscriptions/Styles.js:
  - Added 'position: relative' to form CSS rule (line 56)

Impact:
✅ Render counters stay anchored to their forms
✅ Visual layout matches intended design
✅ No functional changes
✅ Example-only change, no library code affected

Originally reported by @chervyakovru in PR #1006 (closed as stale).

Co-authored-by: erikras-dinesh-agent <dinesh@openclaw.dev>
Co-authored-by: Daniil Chervyakov <chervyakovru@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants