diff --git a/.github/ISSUE_TEMPLATE/BUG-REPORT-V3.yml b/.github/ISSUE_TEMPLATE/BUG-REPORT-V3.yml index 6533a32135e..7c3e24a96d8 100644 --- a/.github/ISSUE_TEMPLATE/BUG-REPORT-V3.yml +++ b/.github/ISSUE_TEMPLATE/BUG-REPORT-V3.yml @@ -1,4 +1,4 @@ -name: "Bug Report: Craft 3" +name: 'Bug Report: Craft 3' description: Report an issue or unexpected behavior pertaining to Craft 3 title: '[3.x]: ' labels: diff --git a/.github/ISSUE_TEMPLATE/BUG-REPORT-V4.yml b/.github/ISSUE_TEMPLATE/BUG-REPORT-V4.yml index 8ec55a33ddf..26657d2b371 100644 --- a/.github/ISSUE_TEMPLATE/BUG-REPORT-V4.yml +++ b/.github/ISSUE_TEMPLATE/BUG-REPORT-V4.yml @@ -1,4 +1,4 @@ -name: "Bug Report: Craft 4" +name: 'Bug Report: Craft 4' description: Report an issue or unexpected behavior pertaining to Craft 4 title: '[4.x]: ' labels: diff --git a/.github/ISSUE_TEMPLATE/BUG-REPORT-V5.yml b/.github/ISSUE_TEMPLATE/BUG-REPORT-V5.yml index 9dc0d91a7fa..03d6484c666 100644 --- a/.github/ISSUE_TEMPLATE/BUG-REPORT-V5.yml +++ b/.github/ISSUE_TEMPLATE/BUG-REPORT-V5.yml @@ -1,4 +1,4 @@ -name: "Bug Report: Craft 5" +name: 'Bug Report: Craft 5' description: Report an issue or unexpected behavior pertaining to Craft 5 title: '[5.x]: ' labels: diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 4a4e1930de6..4c8880f1d0e 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -15,27 +15,27 @@ contact_links: - name: Craft Stack Exchange url: https://craftcms.stackexchange.com/ about: Get help and help others - - name: "Feature Request: Craft CMS" + - name: 'Feature Request: Craft CMS' url: https://github.com/craftcms/cms/discussions/new?category=ideas about: Make a feature request or enhancement for Craft CMS - - name: "Feature Request: Craft Console / Plugin Store" + - name: 'Feature Request: Craft Console / Plugin Store' url: https://github.com/craftcms/console/discussions/new?category=ideas about: Make a feature request or enhancement for Craft Console or the Plugin Store - - name: "Feature Request: Craft Cloud" + - name: 'Feature Request: Craft Cloud' url: https://github.com/craftcms/cloud/discussions/new?category=ideas about: Make a feature request or enhancement for Craft Cloud - - name: "Feature Request: Craft Commerce" + - name: 'Feature Request: Craft Commerce' url: https://github.com/craftcms/commerce/discussions/new?category=ideas about: Make a feature request or enhancement for Craft Commerce - - name: "Bug Report: Craft CMS" + - name: 'Bug Report: Craft CMS' url: https://github.com/craftcms/cms/issues/new/choose about: Create a bug report for Craft CMS - - name: "Bug Report: Craft Console / Plugin Store" + - name: 'Bug Report: Craft Console / Plugin Store' url: https://github.com/craftcms/console/issues/new/choose about: Create a bug report for Craft Console or the Plugin Store - - name: "Bug Report: Craft Cloud" + - name: 'Bug Report: Craft Cloud' url: https://craftcms.com/contact about: Create a bug report for Craft Cloud - - name: "Bug Report: Craft Commerce" + - name: 'Bug Report: Craft Commerce' url: https://github.com/craftcms/commerce/issues/new/choose - about: Create a bug report for Craft Commerce \ No newline at end of file + about: Create a bug report for Craft Commerce diff --git a/CHANGELOG.md b/CHANGELOG.md index 17fceaac70a..97f96546af7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ - Fixed a bug where opening a disclosure menu wasn’t hiding others. ([#14354](https://github.com/craftcms/cms/issues/14354)) - Fixed a bug where non-global custom fields were being shown on the Fields index page when searching. ([#14344](https://github.com/craftcms/cms/issues/14344)) - Fixed a bug where component slideouts would open when long-pressing on a component’s action menu button or drag handle within a component select input. +- Fixed various issues with Tags fields. ([#14356](https://github.com/craftcms/cms/issues/14356), [#14359](https://github.com/craftcms/cms/pull/14359)) - Fixed a bug where read/write splitting was always getting disabled for GraphQL POST requests. ([#14324](https://github.com/craftcms/cms/issues/14324)) - Fixed a bug where GraphQL schema edit pages could include empty category headings. - Fixed a bug where asset slideouts weren’t showing validation errors on the Filename field. ([#14329](https://github.com/craftcms/cms/issues/14329)) diff --git a/src/fields/Tags.php b/src/fields/Tags.php index 2c133605d31..41409aa5908 100644 --- a/src/fields/Tags.php +++ b/src/fields/Tags.php @@ -125,6 +125,16 @@ protected function inputHtml(mixed $value, ?ElementInterface $element, bool $inl return '

' . Craft::t('app', 'This field is not set to a valid source.') . '

'; } + /** + * @inheritdoc + */ + protected function supportedViewModes(): array + { + return [ + 'list' => Craft::t('app', 'List'), + ]; + } + /** * @inheritdoc */ diff --git a/src/templates/_components/fieldtypes/Tags/input.twig b/src/templates/_components/fieldtypes/Tags/input.twig index bbdc7a3a6a4..731da962e03 100644 --- a/src/templates/_components/fieldtypes/Tags/input.twig +++ b/src/templates/_components/fieldtypes/Tags/input.twig @@ -9,14 +9,18 @@ {% from "_includes/forms" import text %}
-
+
+ {% endapply -%} +
{{ text({ diff --git a/src/web/assets/cp/dist/cp.js b/src/web/assets/cp/dist/cp.js index 8ddc9fd5d24..b3955b0c889 100644 --- a/src/web/assets/cp/dist/cp.js +++ b/src/web/assets/cp/dist/cp.js @@ -1,3 +1,3 @@ /*! For license information please see cp.js.LICENSE.txt */ -(function(){var __webpack_modules__={463:function(){Craft.Accordion=Garnish.Base.extend({$trigger:null,targetSelector:null,_$target:null,init:function(t){var e=this;this.$trigger=$(t),this.$trigger.data("accordion")&&(console.warn("Double-instantiating an accordion trigger on an element"),this.$trigger.data("accordion").destroy()),this.$trigger.data("accordion",this),this.targetSelector=this.$trigger.attr("aria-controls")?"#".concat(this.$trigger.attr("aria-controls")):null,this.targetSelector&&(this._$target=$(this.targetSelector)),this.addListener(this.$trigger,"click","onTriggerClick"),this.addListener(this.$trigger,"keypress",(function(t){var i=t.keyCode;i!==Garnish.SPACE_KEY&&i!==Garnish.RETURN_KEY||(t.preventDefault(),e.onTriggerClick())}))},onTriggerClick:function(){"true"===this.$trigger.attr("aria-expanded")?this.hideTarget(this._$target):this.showTarget(this._$target)},showTarget:function(t){var e=this;if(t&&t.length){this.showTarget._currentHeight=t.height(),t.removeClass("hidden"),this.$trigger.removeClass("collapsed").addClass("expanded").attr("aria-expanded","true");for(var i=0;i=this.settings.maxItems)){var e=$(t).appendTo(this.$tbody),i=e.find(".delete");this.settings.sortable&&this.sorter.addItems(e),this.$deleteBtns=this.$deleteBtns.add(i),this.addListener(i,"click","handleDeleteBtnClick"),this.totalItems++,this.updateUI()}},reorderItems:function(){var t=this;if(this.settings.sortable){for(var e=[],i=0;i=this.settings.maxItems?$(this.settings.newItemBtnSelector).addClass("hidden"):$(this.settings.newItemBtnSelector).removeClass("hidden"))}},{defaults:{tableSelector:null,noItemsSelector:null,newItemBtnSelector:null,idAttribute:"data-id",nameAttribute:"data-name",sortable:!1,allowDeleteAll:!0,minItems:0,maxItems:null,reorderAction:null,deleteAction:null,reorderSuccessMessage:Craft.t("app","New order saved."),reorderFailMessage:Craft.t("app","Couldn’t save new order."),confirmDeleteMessage:Craft.t("app","Are you sure you want to delete “{name}”?"),deleteSuccessMessage:Craft.t("app","“{name}” deleted."),deleteFailMessage:Craft.t("app","Couldn’t delete “{name}”."),onReorderItems:$.noop,onDeleteItem:$.noop}})},6872:function(){Craft.AssetImageEditor=Garnish.Modal.extend({$body:null,$footer:null,$imageTools:null,$buttons:null,$cancelBtn:null,$replaceBtn:null,$saveBtn:null,$focalPointBtn:null,$editorContainer:null,$straighten:null,$croppingCanvas:null,$spinner:null,$constraintContainer:null,$constraintRadioInputs:null,$customConstraints:null,canvas:null,image:null,viewport:null,focalPoint:null,grid:null,croppingCanvas:null,clipper:null,croppingRectangle:null,cropperHandles:null,cropperGrid:null,croppingShade:null,imageStraightenAngle:0,viewportRotation:0,originalWidth:0,originalHeight:0,imageVerticeCoords:null,zoomRatio:1,animationInProgress:!1,currentView:"",assetId:null,cacheBust:null,draggingCropper:!1,scalingCropper:!1,draggingFocal:!1,previousMouseX:0,previousMouseY:0,shiftKeyHeld:!1,editorHeight:0,editorWidth:0,cropperState:!1,scaleFactor:1,flipData:{},focalPointState:!1,maxImageSize:null,lastLoadedDimensions:null,imageIsLoading:!1,mouseMoveEvent:null,croppingConstraint:!1,constraintOrientation:"landscape",showingCustomConstraint:!1,saving:!1,renderImage:null,renderCropper:null,_queue:null,init:function(t,e){var i=this;this._queue=new Craft.Queue,this.cacheBust=Date.now(),this.setSettings(e,Craft.AssetImageEditor.defaults),null===this.settings.allowDegreeFractions&&(this.settings.allowDegreeFractions=Craft.isImagick),Garnish.prefersReducedMotion()&&(this.settings.animationDuration=1),this.assetId=t,this.flipData={x:0,y:0},this.$container=$('').appendTo(Garnish.$bod),this.$body=$('
').appendTo(this.$container),this.$footer=$('