IntellijAlpine icon indicating copy to clipboard operation
IntellijAlpine copied to clipboard

x-data with blade variable injection isn't handled correctly

Open FHoulbreque opened this issue 2 years ago • 1 comments

Trying to define a variable with a value coming from blade result in alerts and the IDE being lost at an unlawful statement:

Here is the working code

 x-data="{
        isOpen: false,
        messageToDisplay: '{{ $messageToDisplay }}',
        showNotification(message) {
          this.isOpen = true
          this.messageToDisplay = message
          setTimeout(() => {
            this.isOpen = false
          }, 5000)
        }
      }"

Here is the result in phpStorm screen : image

FHoulbreque avatar Oct 24 '22 11:10 FHoulbreque

Same issue here @inxilpro any existing way to handle this?

fabio-ivona avatar Jan 27 '24 22:01 fabio-ivona