I'm not sure how should $forceDefault work, but I want it to force minimal count of items when removing. The problem is, that the attached method (which calls createDefault method where the $forceDefault is applied) is called before remove method, so the default item count is compared with the count of items before remove is performed.
I'm not sure how should
$forceDefault
work, but I want it to force minimal count of items when removing. The problem is, that theattached
method (which callscreateDefault
method where the$forceDefault
is applied) is called beforeremove
method, so the default item count is compared with the count of items before remove is performed.