marcoroth/stimulus-lsp

Bug: values with dash not working?

Closed this issue · 2 comments

image

export default class extends Controller {
  static targets = ['container']
  static values = {
    selector: String,
    frameId: String,
    url: String,
    enabled: Boolean,
    border: Boolean,
  }

Looks like frameId -> frame-id value is not getting parsed correctly?

This could very well be, let me see what's up here.

Yup, seems like this regex isn't flexible enough:

valueAttribute = /data-(.+)-(.+)-value/