fix: Camera aspect-ratio should always apply (#2114)

- Closes #2073
This commit is contained in:
Dermot Duffy
2025-07-13 14:56:03 -07:00
committed by GitHub
parent d0bfb97843
commit c3e7cef9cf
29 changed files with 812 additions and 201 deletions
+2 -2
View File
@@ -196,11 +196,11 @@ export const isValidDate = (date: Date): boolean => {
* @param name The attribute name.
* @param value An optional value to set the attribute to.
*/
export const setOrRemoveAttribute = (
export const setOrRemoveAttribute = <T extends string>(
element: HTMLElement,
set: boolean,
name: string,
value?: string,
value?: T,
): void => {
if (set) {
element.setAttribute(name, value ?? '');