-
Notifications
You must be signed in to change notification settings - Fork 215
Closed
Labels
Description
Describe the bug:
When deleting a split area, the following warning appears in the console:
as-split: Percent areas must total 100%
After reviewing my implementation, I confirmed that the area sizes are set correctly.
In my use case, I always have at least 1 and at most 2 split areas at any given time.
- When starting with one area or adding a second area, everything works as expected, and no warnings appear.
- However, when deleting one of the areas, the warning is triggered—even though the remaining area is configured correctly.
Library version:
@angular-split version: "^19.0.0",
angular: 19 (latest).
Steps to reproduce the issue:
I created a demo to reproduce the issue:
Remove area demo
- Start with 2 split area.
- Delete one of the areas programmatically(by button click).
Observe the warning in the console:
as-split: Percent areas must total 100%
Expected behavior:
Deleting a split area should not result in a warning.