This library should automatically call either the reportValidity() or checkValidity() functions before saving input, without having to manually register a save trigger for each option group to do so. See here and here for more info.
Note that this is also supported by a similar library: https://github.com/fregante/webext-options-sync.