You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the setContent method, the content is not updated if the defined character limit is smaller than the current content size. For example:
Content size: 321 characters
Limit: 300 characters
In this case, the setContent method does not override the content. Previously, it seemed to reset the content without respecting the limit, but after introducing changes HERE, this behavior seems to be skipped.
Browser Used
Chrome (please specify the browser where the issue was observed)
The setContent method should properly update the content even when the limit is smaller than the content size. It should respect the character limit by truncating or rejecting excessive content rather than retaining the previous content.
Additional Context
This issue makes it challenging to dynamically enforce character limits or update the content when the limit changes. It appears to be related to recent changes in how transactions are handled.
Dependency Updates
Yes, I've updated all my dependencies.
The text was updated successfully, but these errors were encountered:
gethari
changed the title
Content not over written, if limit is higher than what's allowed in CharacterCount
[Bug]: setContent does not overwrite content when the character limit is smaller than the content size
Dec 2, 2024
Bug Report
Affected Packages
Version(s)
Bug Description
When using the
setContent
method, the content is not updated if the defined character limit is smaller than the current content size. For example:In this case, the
setContent
method does not override the content. Previously, it seemed to reset the content without respecting the limit, but after introducing changes HERE, this behavior seems to be skipped.Browser Used
Code Example URL
CodeSandbox Example
Expected Behavior
The
setContent
method should properly update the content even when the limit is smaller than the content size. It should respect the character limit by truncating or rejecting excessive content rather than retaining the previous content.Additional Context
This issue makes it challenging to dynamically enforce character limits or update the content when the limit changes. It appears to be related to recent changes in how transactions are handled.
Dependency Updates
The text was updated successfully, but these errors were encountered: