Dynamic color and outline prop not working on button

Hi,

I have a mobiscroll button component which takes color prop, disabled prop and outline prop.

when any of these props dynamically change, the component is loosing its classes and only text is being rendered.

mobiscroll version: 4.4.1

code:
<mobiscroll.Button
color={!disabled? color: “”}
ref={btn => (this._btn = btn)}
onClick={this.handleButtonClicked}
disabled={disabled}
outline={outline}
>

Hi there,

Thanks for reporting this problem!

I was able to reproduce the issue. It looks like this is a bug in the button component. I’ve passed this problem to the dev team and it will be fixed in the upcoming version.

Best,
Szili

Hi there,

I just wanted to let you know that our latest, v4.5.0 version includes the fix for the Button component dynamic props change issue.

Feel free to try the new version out!

Best,
Szili