Skip to content

Commit 8105a05

Browse files
authored
Convert style values to strings before passing them to setStyle.
1 parent 9b6e85a commit 8105a05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ts/util/Styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ export class Styles {
481481
*/
482482
public set(name: string, value: string | number | boolean) {
483483
name = this.normalizeName(name);
484-
this.setStyle(name, value as string);
484+
this.setStyle(name, value.toString());
485485
//
486486
// If there is no combine function, the children combine to
487487
// a separate parent (e.g., border-width sets border-top-width, etc.

0 commit comments

Comments
 (0)