Skip to content

Commit

Permalink
fix: dynamic handle element respects false value
Browse files Browse the repository at this point in the history
  • Loading branch information
sneas committed Nov 10, 2023
1 parent f023a33 commit f546ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/img-comparison-slider/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class HTMLImgComparisonSliderElement extends HTMLElement {
private dragByHandle = false;

public set handle(newValue: any) {
this.dragByHandle = !!newValue;
this.dragByHandle = newValue.toString().toLowerCase() !== 'false';
}

public get handle() {
Expand Down

0 comments on commit f546ab4

Please sign in to comment.