The attr day_span was breaking the component when used. This was because it was passing  variable instead of passing day_span from .