mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
fix setting 0 corner radius
This commit is contained in:
parent
2e7a500fdb
commit
3bf97b4d1d
|
|
@ -1451,13 +1451,13 @@ ebi('radius').oninput = function () {
|
|||
var r = parseFloat(this.value);
|
||||
|
||||
clmod(ebi('radius'), 'invalid', this.value.length != 0 && r.length == 0);
|
||||
if(r == radius)
|
||||
if(r === radius)
|
||||
return;
|
||||
|
||||
if(isNaN(r))
|
||||
r = ''
|
||||
swrite('radius', r);
|
||||
var setV = r == '' ? '' : (r + 'px');
|
||||
var setV = this.value == '' ? '' : (r + 'px');
|
||||
document.documentElement.style.setProperty('--radius', setV);
|
||||
console.log(setV);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue