"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_STYLE = void 0;
const element_1 = require("../../../../../client/element");
exports.DEFAULT_STYLE = {};
class Option extends element_1.Element {
    constructor($props, $system) {
        super($props, $system, $system.api.document.createElement('option'));
    }
    onPropChanged(prop, current) {
        // console.log('Option', 'onPropChanged', prop, current)
        super.onPropChanged(prop, current);
        if (prop === 'value') {
            if (current === undefined) {
                this.$element.value = current;
            }
        }
    }
}
exports.default = Option;
//# sourceMappingURL=Component.js.map