cowbell/splittypie

View on GitHub
app/components/event-url.js

Summary

Maintainability
A
0 mins
Test Coverage
import { later } from "@ember/runloop";
import TextField from "@ember/component/text-field";

export default TextField.extend({
    readonly: true,

    classNames: ["event-url"],

    didInsertElement() {
        this._super(...arguments);

        // workaround select after animations
        later(() => {
            this.$().focus().select();
        }, 500);
    },
});