start discussion toggle clicking divider causes UI break
This is because the divider is an li
. Complete oversight.
This should be fixed in the inputsetter plugin I believe. Possibly at the core.
I can add a constant that implementors can use as an attr or class to declare a list item as "unclickable". Before I do this I should see if there is something smarter to solve this. We should avoid adding constants as much as we can.
I know this is because we want inputsetter to be able to have a completely empty value on the clicked item because we need to clear some fields when Comment
is clicked. I think one other solution is to add an allowEmpty
config option for each inputtersetter input to allow certain inputs to be set to an empty value, but some others not. This sounds a little more promising maybe.
We can easily test for this as I test a similar case that was doing the same thing when clicking the ul
.
Thanks for finding @alfredo1 .