Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read properties of null (reading 'value') #2806

Open
abdullajon8111 opened this issue Feb 24, 2024 · 1 comment
Open
Assignees
Labels

Comments

@abdullajon8111
Copy link

Uncaught TypeError: Cannot read properties of null (reading 'value')

at orchid.js?id=4b1e0fdeaa7520a732477f55e0e6a61e:16:74061
at O (orchid.js?id=4b1e0fdeaa7520a732477f55e0e6a61e:2:50262)
at F.allowRequestToBeIntercepted (orchid.js?id=4b1e0fdeaa7520a732477f55e0e6a61e:2:53795)
at F.perform (orchid.js?id=4b1e0fdeaa7520a732477f55e0e6a61e:2:52589)
at D.start (orchid.js?id=4b1e0fdeaa7520a732477f55e0e6a61e:2:57366)
at ht.submitForm (orchid.js?id=4b1e0fdeaa7520a732477f55e0e6a61e:16:17718)
at Object.formSubmitted (orchid.js?id=4b1e0fdeaa7520a732477f55e0e6a61e:16:32358)
at U.submitBubbled (orchid.js?id=4b1e0fdeaa7520a732477f55e0e6a61e:2:61843)

image

@Amineembarki
Copy link

This error is coming from base.blade.php ==> @includeWhen(isset($state), 'platform::partials.state') and app.js ==> window.addEventListener("turbo:before-fetch-request", (event) => {
let state = document.getElementById("screen-state").value;

if (state.length > 0) {
    event.detail?.fetchOptions?.body?.append("_state", state);
}

}); The $state is not yet set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants