angular-switchery-ios icon indicating copy to clipboard operation
angular-switchery-ios copied to clipboard

Button is not working with 0, 1 value .

Open thapliyalmanoj opened this issue 4 years ago • 1 comments

Hi, In the case of 0 or 1, the button is always enabled.

thapliyalmanoj avatar Jan 21 '21 19:01 thapliyalmanoj

That was type casting issue I use this code. // true Boolean(JSON.parse("true")); Boolean(JSON.parse("1")); Boolean(JSON.parse(1)); Boolean(JSON.parse(true));

// false Boolean(JSON.parse("0")); Boolean(JSON.parse(0)); Boolean(JSON.parse("false")); Boolean(JSON.parse(false));

thapliyalmanoj avatar Jan 21 '21 20:01 thapliyalmanoj