]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/optional-input.js
TS: Converted dom and keyboard nav services
[bookstack] / resources / js / components / optional-input.js
index eab58e42a584a53c18a1727a3fe497789c23c381..1b133047d00d1d23d2bec486ee5ca7a84beb0af9 100644 (file)
@@ -1,6 +1,8 @@
-import {onSelect} from "../services/dom";
+import {onSelect} from '../services/dom.ts';
+import {Component} from './component';
+
+export class OptionalInput extends Component {
 
-class OptionalInput {
     setup() {
         this.removeButton = this.$refs.remove;
         this.showButton = this.$refs.show;
@@ -24,5 +26,3 @@ class OptionalInput {
     }
 
 }
-
-export default OptionalInput;
\ No newline at end of file