]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/optional-input.js
Updated a whole load more js components
[bookstack] / resources / js / components / optional-input.js
index eab58e42a584a53c18a1727a3fe497789c23c381..cc429c991522bcd9b51a5fc811127e7775a4a066 100644 (file)
@@ -1,6 +1,7 @@
 import {onSelect} from "../services/dom";
+import {Component} from "./component";
 
-class OptionalInput {
+export class OptionalInput extends Component {
     setup() {
         this.removeButton = this.$refs.remove;
         this.showButton = this.$refs.show;
@@ -23,6 +24,4 @@ class OptionalInput {
         });
     }
 
-}
-
-export default OptionalInput;
\ No newline at end of file
+}
\ No newline at end of file