We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Adding an ID to a button element using chainable id method is ignored.
Eg: Form::button('Upload')->id('upload-btn')
Output is: <button type="button" class="btn btn-primary">Upload</button>
<button type="button" class="btn btn-primary">Upload</button>
Expected output: <button id="upload-btn" type="button" class="btn btn-primary">Upload</button>
<button id="upload-btn" type="button" class="btn btn-primary">Upload</button>
Changing renderButton() function in FormBuilder.php fixes this:
private function renderButton(): string { extract($this->get('id', 'type', 'value', 'disabled')); $class = $this->getBtnAnchorClasses(); $attrs = $this->buildHtmlAttrs(['id' => $id, 'type' => $type, 'class' => $class, 'disabled' => $disabled]); return '<button ' . $attrs . '>' . $value . '</button>'; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Adding an ID to a button element using chainable id method is ignored.
Eg: Form::button('Upload')->id('upload-btn')
Output is:
<button type="button" class="btn btn-primary">Upload</button>
Expected output:
<button id="upload-btn" type="button" class="btn btn-primary">Upload</button>
Changing renderButton() function in FormBuilder.php fixes this:
The text was updated successfully, but these errors were encountered: