Skip to content

componentUpdated function missing in LivePreview.vue #13732

@o1y

Description

@o1y

Bug description

Custom Live Preview inputs configured via config/statamic/live_preview.php don't work in V6.

How to reproduce

  1. Configure a custom Live Preview input in config/statamic/live_preview.php
  2. Register a Vue component that emits input events
  3. Open Live Preview and select a value in the custom input
  4. Observe the componentUpdated is not a function error in the console

Logs

TypeError: vn.componentUpdated is not a function
    onInput index-CijHn_rK.js:251
    callWithErrorHandling index-CijHn_rK.js:17
    callWithAsyncErrorHandling index-CijHn_rK.js:17
    emit index-CijHn_rK.js:18
    onSelected LivePreviewModePicker.vue:50
    callWithErrorHandling index-CijHn_rK.js:17
    callWithAsyncErrorHandling index-CijHn_rK.js:17
    emit index-CijHn_rK.js:18
    0 index-CijHn_rK.js:157

Environment

6.0.0

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions