mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-26 06:44:35 +02:00
Use template literals instead of concatenation (#33497)
This commit is contained in:
@@ -474,7 +474,7 @@ class Modal extends BaseComponent {
|
||||
const actualValue = element.style[styleProp]
|
||||
const calculatedValue = window.getComputedStyle(element)[styleProp]
|
||||
Manipulator.setDataAttribute(element, styleProp, actualValue)
|
||||
element.style[styleProp] = callback(Number.parseFloat(calculatedValue)) + 'px'
|
||||
element.style[styleProp] = `${callback(Number.parseFloat(calculatedValue))}px`
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user