We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca43a9c commit f6ae1bbCopy full SHA for f6ae1bb
src/ColorInterpolation.ts
@@ -61,7 +61,7 @@ export class ColorInterpolation extends LitElement {
61
const x = (event.clientX - rect.left) / rect.width;
62
const newColor = this.colorGradient.getColorAt(
63
x,
64
- ColorLerpMode[mode as keyof typeof ColorLerpMode]
+ ColorLerpMode[mode.toUpperCase() as keyof typeof ColorLerpMode]
65
);
66
this.setActiveColor(ActiveColorSide.NONE);
67
this.setColor(newColor);
0 commit comments