@@ -522,13 +522,13 @@ class SoundEditor extends React.Component {
522
522
{ name : "Cancel" , callback : ( ) => audio . close ( ) } ,
523
523
) ;
524
524
525
- menu . textarea . style = "margin: 0 10px 0 10px;position: relative;display: flex;justify-content: flex-end;flex-direction: row;height: calc(100% - (3.125em + 2.125em + 16px));align-items: center;" ;
526
- menu . textarea . append ( pitchDiv , volumeDiv ) ;
525
+ menu . style = "margin: 0 10px 0 10px;position: relative;display: flex;justify-content: flex-end;flex-direction: row;height: calc(100% - (3.125em + 2.125em + 16px));align-items: center;" ;
526
+ menu . append ( pitchDiv , volumeDiv ) ;
527
527
528
528
const previewButton = document . createElement ( "button" ) ;
529
529
previewButton . style = "border-radius: 1000px;padding: 5px;width: 45px;height: 45px;margin-right: 10px;border-style: none;background: #00c3ff;" ;
530
530
previewButton . innerHTML = `<img draggable="false" style="max-width: 100%;max-height: 100%" src="${ playURI } ">` ;
531
- menu . textarea . append ( previewButton ) ;
531
+ menu . append ( previewButton ) ;
532
532
533
533
// preview functionality
534
534
// create an audio buffer using the selection
@@ -629,7 +629,7 @@ class SoundEditor extends React.Component {
629
629
{ name : "Cancel" , callback : ( ) => { } } ,
630
630
) ;
631
631
632
- menu . textarea . style = "padding: 10px 20px;" ;
632
+ menu . style = "padding: 10px 20px;" ;
633
633
const rateTitle = genTitle ( "New Sample Rate:" ) ;
634
634
635
635
const rateSelector = document . createElement ( "select" ) ;
@@ -672,7 +672,7 @@ class SoundEditor extends React.Component {
672
672
selectedForceRate = div . id == "1" ;
673
673
e . stopPropagation ( ) ;
674
674
} ) ;
675
- menu . textarea . append ( rateTitle , warningDiv , genTitle ( "Apply to:" ) , applicatorDiv , warningDiv2 ) ;
675
+ menu . append ( rateTitle , warningDiv , genTitle ( "Apply to:" ) , applicatorDiv , warningDiv2 ) ;
676
676
}
677
677
render ( ) {
678
678
const { effectTypes } = AudioEffects ;
0 commit comments